import { observer } from "mobx-react-lite"; import { PlusIcon } from "lucide-react"; // mobx store import { useMobxStore } from "lib/mobx/store-provider"; // components import { EmptyState } from "components/common"; // assets import emptyIssue from "public/empty-state/issue.svg"; import { EProjectStore } from "store/command-palette.store"; import { useRouter } from "next/router"; export const ProjectViewEmptyState: React.FC = observer(() => { const router = useRouter(); const { viewId } = router.query as { viewId: string }; const { commandPalette: commandPaletteStore, trackEvent: { setTrackElement }, } = useMobxStore(); return (
, onClick: () => { setTrackElement("VIEW_EMPTY_STATE"); commandPaletteStore.toggleCreateIssueModal(true, EProjectStore.PROJECT_VIEW); }, }} />
); });