import { Table, type TableProps } from 'antd'
import { normalizeTableColumns } from '../tableAlign'

/** Ant Design Table 래퍼 — 목록 정렬 규칙(헤더/텍스트 중앙, 숫자·금액 우측) 적용 */
export default function CareTable<RecordType extends object>(props: TableProps<RecordType>) {
  const { columns, ...rest } = props
  return <Table<RecordType> {...rest} columns={normalizeTableColumns(columns)} />
}
