use leptos::prelude::*;

#[component]
pub fn LogoutButton() -> impl IntoView {
    let handle_logout = move |_| {
        web_sys::console::log_1(&"Logout clicked".into());
    };

    view! {
        <button
            on:click=handle_logout
            class="logout-button text-red-600 hover:text-red-800"
        >
            "Logout"
        </button>
    }
}
