import { useTranslation } from "react-i18next"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; import { Separator } from "@/components/ui/separator"; import { Switch } from "@/components/ui/switch"; import { useViewStore } from "@/stores"; import Icon from "./Icon"; import Dropdown from "./common/Dropdown"; const ViewSetting = () => { const { t } = useTranslation(); const viewStore = useViewStore(); const order = viewStore.getOrder(); const { field, direction } = order; const displayStyle = viewStore.displayStyle || "full"; return ( } actionsClassName="!mt-3 !right-[unset] -left-24 -ml-2" actions={
e.stopPropagation()}>
{t("filter.compact-mode")} viewStore.setDisplayStyle(checked ? "compact" : "full")} />
{t("filter.order-by")}
{t("filter.direction")}
} >
); }; export default ViewSetting;