import classNames from "classnames"; import { useTranslation } from "react-i18next"; import { useAppSelector } from "../stores"; import useViewStore from "../stores/v1/view"; import Icon from "./Icon"; const Navigator = () => { const { t } = useTranslation(); const viewStore = useViewStore(); const { shortcutList } = useAppSelector((state) => state.shortcut); const tags = shortcutList.map((shortcut) => shortcut.tags).flat(); const currentTab = viewStore.filter.tab || `tab:all`; const sortedTagMap = sortTags(tags); return (