"use client"; import React from "react"; import { useUiStore } from "../store/ui-store"; import { isDarkTheme } from "../store/ui-store"; import { cx, subtleButtonClass } from "../lib/theme"; import { useTranslations } from "../hooks/use-translations"; export function UiPreferences({ compact = false }: { compact?: boolean }) { const { theme, locale, setTheme, setLocale } = useUiStore((s) => s); const { t } = useTranslations(); const isDark = isDarkTheme(theme); const wrapperHeight = compact ? "h-7" : "h-9"; const textSize = compact ? "text-[10px]" : "text-xs"; return (
); }