import { Divider, Option, Select, Switch } from "@mui/joy"; import { useTranslation } from "react-i18next"; import useViewStore from "../stores/v1/view"; 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-2" actions={
e.stopPropagation()}>
{t("filter.compact-mode")} viewStore.setDisplayStyle(event.target.checked ? "compact" : "full")} />
{t("filter.order-by")}
{t("filter.direction")}
} >
); }; export default ViewSetting;