import React from "react"; import type { RecentIncident } from "../DashboardTypes"; import { CustomTable, CustomStatus } from "../../../components/custom"; import type { Column } from "../../../components/custom/CustomTable"; interface RecentIncidentsTableProps { incidents: RecentIncident[]; } export const RecentIncidentsTable: React.FC = ({ incidents }) => { const columns: Column[] = [ { header: "Recovery ID", accessor: (row) => ( {row.recoveryId} ), }, { header: "Passenger / PNR", accessor: (row) => ( {row.passengerName} ), }, { header: "Flight", accessor: (row) => ( {row.flightNumber} ), }, { header: "Category", accessor: (row) => ( {row.category} ), }, { header: "Status", accessor: (row) => , }, { header: "Value", accessor: (row) => ( {row.value} ), }, ]; return (
{/* Table Header Section */}

Recent Recovery Incidents

Real-time assessment log of refund and compensation cases.

{/* Custom Table Component */} columns={columns} data={incidents} itemName="incidents" totalItems={incidents.length} startIndex={incidents.length > 0 ? 1 : 0} endIndex={incidents.length} totalPages={1} currentPage={1} />
); }; export default RecentIncidentsTable;