Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | 4x 2x 2x 2x | import { useTranslation } from "react-i18next";
import useUserStore from "@/store/useUserStore";
import { Filters } from "@/components/organisms";
import {
Dialog,
DialogTitle,
DialogContent,
DialogActions,
} from "@mui/material";
import CloseIcon from "@mui/icons-material/Close";
export const FiltersDialog = ({
onClose,
openDialog,
}: {
onClose: () => void;
openDialog: boolean;
}) => {
const { t } = useTranslation();
const { accentColor } = useUserStore();
return (
<Dialog fullScreen onClose={onClose} open={openDialog}>
<DialogTitle>
<div className="flex justify-between items-center">
<span className="font-semibold">{t("sorting_and_filters")}</span>
<CloseIcon
onClick={onClose}
sx={{ color: "#5A5A5A", cursor: "pointer" }}
/>
</div>
</DialogTitle>
<DialogContent>
<Filters />
</DialogContent>
<DialogActions>
<button
onClick={onClose}
style={{ background: accentColor }}
className="rounded-md w-full px-4 py-2 shadow-md text-white"
>
{t("apply")}
</button>
</DialogActions>
</Dialog>
);
};
|