import { Computer, Moon, Sun } from "lucide-react";
import { useTranslation } from "react-i18next";
import { usePageTitle } from "~/contexts/PageTitleContext";
import { useApp, type Theme } from "../AppContext";
import '../tailwind-full.css';
export default function Settings() {
const { t, i18n } = useTranslation();
usePageTitle(t("navbar.settings", "Ajustes"));
const {
theme,
setTheme,
mapPositionMode,
setMapPositionMode
} = useApp();
const THEMES = [
{ value: "light" as Theme, label: t("about.theme_light", "Claro"), icon: Sun },
{ value: "dark" as Theme, label: t("about.theme_dark", "Oscuro"), icon: Moon },
{ value: "system" as Theme, label: t("about.theme_system", "Sistema"), icon: Computer },
];
return (
{/* Theme Selection */}
{t("about.theme", "Tema")}
{THEMES.map(({ value, label, icon: Icon }) => (
))}
{/* Map Position Mode */}
{/* Language Selection */}
);
}