26 lines
681 B
TypeScript
26 lines
681 B
TypeScript
import { createColumnHelper } from "@tanstack/react-table";
|
|
import { type Link } from "@/entities/link";
|
|
|
|
const columnHelper = createColumnHelper<Link>();
|
|
|
|
const columns = [
|
|
columnHelper.accessor((_, index) => index + 1, {
|
|
id: 'no',
|
|
header: 'NO',
|
|
}),
|
|
columnHelper.accessor('link_sn', {
|
|
id: 'link_sn',
|
|
header: '연계 일련번호',
|
|
}),
|
|
columnHelper.accessor('link_nm', {
|
|
id: 'link_nm',
|
|
header: '연계 명',
|
|
}),
|
|
columnHelper.accessor('srvc_usg', {
|
|
id: 'srvc_usg',
|
|
header: '서비스용도',
|
|
cell: (info) => (info.getValue() ? info.getValue() : '-'),
|
|
}),
|
|
];
|
|
|
|
export { columns }; |