//! Daily summary and session handlers

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

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

pub async fn daily_summary_handler(State(_state): State<AppState>) -> Html<String> {
    Html("<h1>Daily Summary</h1>".to_string())
}

pub async fn daily_public_handler(State(_state): State<AppState>) -> Html<String> {
    Html("<h1>Daily Public View</h1>".to_string())
}

pub async fn create_session_handler(State(_state): State<AppState>) -> Html<String> {
    Html("<h1>Create Session</h1>".to_string())
}

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