"use client";

import { MissingMasterPageClient } from "@/app/dashboard/master-table/_components/missing-master/missing-master-page-client";
import type { MissingMasterFilters } from "@/app/dashboard/master-table/_components/missing-master/missing-master-route";

import { missingStructureMasterColumns } from "./columns";
import { buildMissingStructureMasterHref, LIST_HREF } from "./constants";
import { MissingStructureMasterHeaderActions } from "./list-header-actions";
import type { MissingStructureMasterRow } from "./schema";

type Props = {
  rows: MissingStructureMasterRow[];
  filters: MissingMasterFilters;
  totalCount: number;
  page: number;
  pageSize: number;
  pageCount: number;
  errorMessage?: string | null;
};

export function MissingStructureMasterPageClient(props: Props) {
  return (
    <MissingMasterPageClient
      {...props}
      columns={missingStructureMasterColumns}
      listHref={LIST_HREF}
      buildHref={buildMissingStructureMasterHref}
      idPrefix="missing-structure-master"
      title="View missing parent ISIN structure master"
      description="Temp transactions (Sr class) whose ticker is not yet in structure master."
      breadcrumbLabel="Missing structure master"
      HeaderActions={MissingStructureMasterHeaderActions}
    />
  );
}
