import { FC, useState } from "react"; import { useRouter } from "next/router"; // icons import { ArrowLeft, Link, Plus } from "lucide-react"; // components import { CreateUpdateProjectViewModal } from "components/views"; // components import { Breadcrumbs, BreadcrumbItem } from "@plane/ui"; // ui import { PrimaryButton } from "components/ui"; // helpers import { truncateText } from "helpers/string.helper"; interface IProjectViewsHeader { title: string | undefined; } export const ProjectViewsHeader: FC = (props) => { const { title } = props; // router const router = useRouter(); const { workspaceSlug, projectId } = router.query; // states const [createViewModal, setCreateViewModal] = useState(false); return ( <> {workspaceSlug && projectId && ( setCreateViewModal(false)} workspaceSlug={workspaceSlug.toString()} projectId={projectId.toString()} /> )}
router.back()}>

Projects

} />
{ const e = new KeyboardEvent("keydown", { key: "v" }); document.dispatchEvent(e); }} > Create View
); };