//! Session management handlers

use axum::{
    extract::{State, Path},
    response::Html,
    http::StatusCode,
};
use sqlx::SqlitePool;

#[derive(Clone)]
pub struct AppState {
    pub pool: SqlitePool,
}

pub async fn session_list_handler(State(_state): State<AppState>) -> Html<String> {
    Html("<h1>Sessions List</h1>".to_string())
}

pub async fn session_preview_handler(
    State(_state): State<AppState>,
    Path(_session_id): Path<i64>,
) -> Result<Html<String>, (StatusCode, String)> {
    Ok(Html("<h1>Session Preview</h1>".to_string()))
}

pub async fn session_send_handler(
    State(_state): State<AppState>,
    Path(_session_id): Path<i64>,
) -> Result<Html<String>, (StatusCode, String)> {
    Ok(Html("<h1>Session Sent</h1>".to_string()))
}
