import { useTranslation } from "react-i18next"; import type { UiPreferences } from "~/components/app/UiPreferencesContext"; import { BadgeFeedback } from "~/ui/components/BadgeFeedback"; import { Card } from "~/ui/components/Card"; import { Switch } from "~/ui/components/Switch"; import { PageBody, PageIntro, PageShell } from "../shared/PageShell"; export type UiPreferencesSettingsPageProps = { preferences: UiPreferences; actions: { onSetAutoCollapseSidebar: (enabled: boolean) => void; onSetVisualEffectsEnabled: (enabled: boolean) => void; }; }; export function UiPreferencesSettingsPage({ preferences, actions }: UiPreferencesSettingsPageProps): React.JSX.Element { const { t } = useTranslation(); return (
{t("settings.appearance.description")}

{t("settings.appearance.browserHint")}

); } function PreferenceCard({ title, description, checked, onCheckedChange, uiId, badge, }: { title: string; description: string; checked: boolean; onCheckedChange: (enabled: boolean) => void; uiId: string; badge?: string; }): React.JSX.Element { return (
{title} {badge ? ( {badge} ) : null}
{description}
); }