import { FC } from "react"; import { observer } from "mobx-react"; import Link from "next/link"; // ui import { CustomMenu, LayersIcon } from "@plane/ui"; // hooks import { useIssueDetail, useProject } from "@/hooks/store"; type TIssueParentSiblingItem = { workspaceSlug: string; issueId: string; }; export const IssueParentSiblingItem: FC = observer((props) => { const { workspaceSlug, issueId } = props; // hooks const { getProjectById } = useProject(); const { issue: { getIssueById }, } = useIssueDetail(); const issueDetail = (issueId && getIssueById(issueId)) || undefined; if (!issueDetail) return <>; const projectDetails = (issueDetail.project_id && getProjectById(issueDetail.project_id)) || undefined; return ( <> {projectDetails?.identifier}-{issueDetail.sequence_id} ); });