import type {BoardListItem} from "../type/boardMaster.types.ts"; import type {SearchParams} from "../../../../../type/searchParams.ts"; import {CheckBox} from "../../../../component/checkbox/CheckBox.tsx"; import {getTableRowNumber} from "../../../../component/table/getTableRowNumber.ts"; interface BoardListTableRowProps { item: BoardListItem index: number searchParams: SearchParams totalItems: number currentPage: number checked: boolean onCheck: (id: string, checked: boolean) => void onDetail: (bbsId: string) => void onArticleList: (bbsId: string) => void onPreview: (bbsId: string) => void } export function BoardListTableRow({ item, index, searchParams, totalItems, currentPage, checked, onCheck, onDetail, onArticleList, onPreview }: BoardListTableRowProps) { const rowNumber = getTableRowNumber({ searchParams, totalItems, currentPage, index, }); const bbsId = item.bbsId; return (