import { Slider } from "@/components/ui/slider"; import { Maximize2, Minimize2 } from "lucide-react"; import { useTranslation } from "react-i18next"; export type Density = "cozy" | "compact"; export function DensityToggle({ value, onValueChange, }: { value: Density; onValueChange: (d: Density) => void; }) { const { t } = useTranslation(); const densityLabel = value === "compact" ? t("common.densityCompact") : t("common.densityComfortable"); return (
onValueChange(v === 1 ? "compact" : "cozy")} aria-label={t("common.listDensity")} />
); }