import type {BoardListItem} from "../type/board.types.ts"; import type {SearchParams} from "../../../../type/searchParams.ts"; interface BoardListTableRowProps { item: BoardListItem index: number searchParams: SearchParams totalCount: number currentPage: number recordPerPage: number } export function BoardListTableRow({item, index, searchParams, totalCount, currentPage, recordPerPage}: BoardListTableRowProps) { const rowNumber = searchParams.searchSortOrd === 'DESC' ? totalCount - (currentPage - 1) * recordPerPage - index : (currentPage - 1) * recordPerPage + (index + 1) return (