import { LogOut } from "lucide-react"; import type { FC } from "react"; import { Section } from "@/components/section"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { changeLocale, type Locale, locales, useLocale } from "@/lib/i18n"; import { m } from "@/paraglide/messages"; // Settings reads no API (just the locale + a logout button), so it's a single // presentational section — no container/view split needed. export const SectionSettings: FC = () => { const current = useLocale(); const onLogout = async () => { await fetch("/_auth/logout", { method: "POST" }); window.location.href = "/login"; }; return (

{m.settings_title()}

{m.settings_language()} {locales.map((l: Locale) => ( ))} {m.nav_settings()}
); };