import type { CdcIssueMatrixStatus } from "./cdc-issue-matrix-data";

export type CdcIssueMatrixDetailMock = {
  id: number;
  title: string;
  ministryName: string;
  ministryNameLogo: string | null;
  submittedBy: string;
  submissionDate: string;
  status: CdcIssueMatrixStatus;
  category: string;
  issueDocument: {
    path: string | null;
    name: string;
    sizeLabel: string;
  };
  ministry: {
    name: string;
  };
  plenaryEscalation: string;
  issueDescription: string;
  recommendation: string;
  rgcDecision: string;
  indicators: string;
  progressSolution: string;
  implementationChallenges: string;
  request: string;
  nextStep: string;
  sourceOfVerification: string;
  linkToVerificationSource: string;
};

export const CDC_ISSUE_MATRIX_DETAIL_MOCK: CdcIssueMatrixDetailMock = {
  id: 1,
  title: "Joint inspection",
  ministryName: "National Bank of Cambodia",
  ministryNameLogo: null,
  submittedBy: "National Bank of Cambodia",
  submissionDate: "July 24, 2025",
  status: "In Progress",
  category: "Procedure",
  issueDocument: {
    path: null,
    name: "Meeting Request DOC",
    sizeLabel: "200 KB",
  },
  ministry: {
    name: "National Bank of Cambodia",
  },
  plenaryEscalation: "Plenary",
  issueDescription:
    "The private sector said that the Economic Land Concession (ELCs), which invest in rubber, cashew, plantations, etc., are now fully developed and some are not yet fully developed due to some challenges that require resolutions. Most ELCs complain to the relevant authorities, especially about random inspections conducted by individual ministry/authority to their company/project. Sometimes there are inspections by institutions that the private sector thinks have no competent authority to carry out inspections, for instance, the Ministry of Inspection. Another issue is that sometimes the inspecting ministry required too many unreasonable documents that require the private sector to proof documentations for the past 20 years.",
  recommendation:
    "The private sector requests relevant institutions to cooperate with the Ministry of Agriculture, Forestry and Fisheries to have a group or joint inspection.",
  rgcDecision:
    "The Ministry of Agriculture, Forestry and Fisheries (MAFF) agreed to have joint inspections and not multiple inspections. Inspections are only conducted when problems arise. Inspections must be conducted when there are crimes.",
  indicators: "",
  progressSolution: "",
  implementationChallenges: "",
  request: "",
  nextStep: "",
  sourceOfVerification: "",
  linkToVerificationSource: "",
};

export function getCdcIssueMatrixDetailMock(
  id: number,
): CdcIssueMatrixDetailMock {
  return {
    ...CDC_ISSUE_MATRIX_DETAIL_MOCK,
    id,
  };
}
