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, showTraffic, setShowTraffic, showCameras, setShowCameras, showBusStops, setShowBusStops, showCoachStops, setShowCoachStops, showTrainStops, setShowTrainStops, } = 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 (