import { observer } from "mobx-react"; // hooks import { useIssueDetail, useProject } from "@/hooks/store"; type TIssueIdentifierProps = { issueId: string; projectId: string; }; export const IssueIdentifier: React.FC = observer((props) => { const { issueId, projectId } = props; // store hooks const { getProjectById } = useProject(); const { issue: { getIssueById }, } = useIssueDetail(); // derived values const issue = getIssueById(issueId); const projectDetails = getProjectById(projectId); return (
{projectDetails?.identifier}-{issue?.sequence_id}
); });