import { FC, Fragment } from "react"; import Link from "next/link"; import { observer } from "mobx-react-lite"; // hooks import { useViewDetail } from "hooks/store"; // ui import { PhotoFilterIcon, Tooltip } from "@plane/ui"; // types import { TViewTypes } from "@plane/types"; type TViewItem = { workspaceSlug: string; projectId: string | undefined; viewId: string; viewType: TViewTypes; viewItemId: string; baseRoute: string; }; export const ViewItem: FC = observer((props) => { const { workspaceSlug, projectId, viewId, viewType, viewItemId, baseRoute } = props; // hooks const viewDetailStore = useViewDetail(workspaceSlug, projectId, viewItemId, viewType); if (!viewDetailStore) return <>; return (
viewItemId === viewId && e.preventDefault()} >
{viewDetailStore?.name}
); });