import type {BoardListItem} from "../../type/board.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"; interface BoardListTableProps { items: BoardListItem[] params: SearchParams onChange: (params: SearchParams) => void totalItems: number currentPage: number totalPages: number isAllChecked: boolean isPartiallyChecked: boolean isChecked: (id: string) => boolean onCheck: (id: string, checked: boolean) => void onCheckAll: (checked: boolean) => void onDetail: (bbsId: string) => void onArticleList: (bbsId: string) => void onPreview: (bbsId: string) => void } export function BoardListTable({ items, params, onChange, totalItems, currentPage, totalPages, isAllChecked, isPartiallyChecked, isChecked, onCheck, onCheckAll, onDetail, onArticleList, onPreview }: BoardListTableProps) { return (