export interface ReportRequirement {
  id: string;
  code: string;
  title: string;
  description?: string;
}

export function formatReportRequirementLabel(reqId: string, requirements: ReportRequirement[]): string {
  const requirement = requirements.find((item) => item.id === reqId || item.code === reqId);
  if (!requirement) return reqId;
  return `${requirement.code} ${requirement.title}`;
}

