import { FC } from "react"; import { observer } from "mobx-react-lite"; // hooks import { useView } from "hooks/store"; // components import { ViewItem, ViewCreateEdit } from "../"; // types import { TViewOperations } from "../types"; import { TViewTypes } from "@plane/types"; type TViewRoot = { workspaceSlug: string; projectId: string | undefined; viewId: string | undefined; viewType: TViewTypes; viewOperations: TViewOperations; }; export const ViewRoot: FC = observer((props) => { const { workspaceSlug, projectId, viewId, viewType, viewOperations } = props; // hooks const viewStore = useView(workspaceSlug, projectId, viewType); return (
{viewStore?.viewIds && viewStore?.viewIds.length > 0 && (
{viewStore?.viewIds.map((_viewId) => ( ))}
)}
); });