import type {BoardArticleListItem} from "../type/boardArticle.types.ts"; import type {SearchParams} from "../../../../../type/searchParams.ts"; import {CheckBox} from "../../../../component/checkbox/CheckBox.tsx"; type BoardArticleListTableRowProps = { item: BoardArticleListItem index: number searchParams: SearchParams totalItems: number currentPage: number totalPages: number checked: boolean onCheck: (id: string, checked: boolean) => void } export const BoardArticleListTableRow = ({ item, index, searchParams, totalItems, currentPage, totalPages, checked, onCheck, }: BoardArticleListTableRowProps) => { const rowNumber = searchParams.searchSortOrd === 'DESC' ? totalItems - (currentPage - 1) * totalPages - index : (currentPage - 1) * totalPages + (index + 1) return (