import type {CheckableTableModel, RowActionsModel} from "../../../../type/viewModel.ts"; import type {ContentListItem} from "../type/content.types.ts"; import type {SearchParams} from "../../../../type/searchParams.ts"; import {ContentListTableHeader} from "./ContentListTableHeader.tsx"; import {EmptyRow} from "../../../component/EmptyRow.tsx"; import {ContentListTableRow} from "./ContentListTableRow.tsx"; type ContentListTableProps = CheckableTableModel & RowActionsModel<{ onDetail: (cntId: string, cntDtId: string) => void onPreview: (cntId: string, cntDtId: string) => void }>; export const ContentListTable = ({ items, params, onChange, pagination, check, rowActions }: ContentListTableProps) => { return (
{items.length > 0 ? items.map((item, index) => ( ) ) : ( ) }
) }