"use client"; import { observer } from "mobx-react"; import { useParams } from "next/navigation"; // ui import { Breadcrumbs, PhotoFilterIcon, Button } from "@plane/ui"; // components import { BreadcrumbLink, Logo } from "@/components/common"; import { ViewListHeader } from "@/components/views"; // constants import { EUserProjectRoles } from "@/constants/project"; // hooks import { useCommandPalette, useProject, useUser } from "@/hooks/store"; const ProjectViewsHeader: React.FC = observer(() => { // router const { workspaceSlug } = useParams(); // store hooks const { toggleCreateViewModal } = useCommandPalette(); const { membership: { currentProjectRole }, } = useUser(); const { currentProjectDetails } = useProject(); const canUserCreateIssue = currentProjectRole && [EUserProjectRoles.ADMIN, EUserProjectRoles.MEMBER].includes(currentProjectRole); return ( <>