import { Text, Button } from "@mantine/core"; import { useTranslation } from "react-i18next"; import { useAuth } from "@app/auth/UseSession"; import { useNavigate } from "react-router-dom"; export function OverviewHeader() { const { t } = useTranslation(); const { signOut, user } = useAuth(); const navigate = useNavigate(); const handleLogout = async () => { try { await signOut(); navigate("/login"); } catch (error) { console.error("Logout error:", error); } }; return (