import type {BoardListItem} from "../type/boardMaster.types.ts"; import type {SearchParams} from "../../../../../type/searchParams.ts"; import {EmptyRow} from "../../../../component/EmptyRow.tsx"; import {BoardListTableHeader} from "./BoardListTableHeader.tsx"; import {BoardListTableRow} from "./BoardListTableRow.tsx"; import type {CheckableTableModel, RowActionsModel} from "../../../../../type/viewModel.ts"; type BoardListTableProps = CheckableTableModel & RowActionsModel<{ onDetail: (bbsId: string) => void onArticleList: (bbsId: string) => void onPreview: (bbsId: string) => void }>; export function BoardListTable({ items, params, onChange, pagination, check, rowActions }: BoardListTableProps) { return (
{items.length > 0 ? items.map((item, index) => ( )) : () }
) }