//! Login modal — fetched on demand by `hx-get` into `#modal-slot`. F-06.

/// Placeholder until F-06.
pub fn render_login_modal() -> String {
    String::from(
        r#"<div data-stub="login-modal" id="modal-slot" hx-get="/api/htmx/auth/login-modal" hx-trigger="login-requested from:body"></div>"#,
    )
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn carries_modal_slot_id() {
        assert!(render_login_modal().contains(r#"id="modal-slot""#));
    }
}
