import { uniq } from "lodash-es"; import { Button } from "@mui/joy"; import { useAppSelector } from "../stores"; import useViewStore from "../stores/v1/view"; import Icon from "./Icon"; const Navigator = () => { const viewStore = useViewStore(); const { shortcutList } = useAppSelector((state) => state.shortcut); const tags = uniq(shortcutList.map((shortcut) => shortcut.tags).flat()); const currentTab = viewStore.filter.tab || `tab:all`; return (
{tags.map((tag) => ( ))}
); }; export default Navigator;