import { createColumnHelper } from '@tanstack/react-table'; import { Button, ButtonGroup, Form } from 'react-bootstrap'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faPlusCircle, faTrashCan } from '@fortawesome/free-solid-svg-icons'; import Table from '@/components/Table'; import { attributes } from './mock'; const columnHelper = createColumnHelper(); export const columns = [ columnHelper.accessor('key', { header: 'Key', cell: ({ getValue, row, table }) => { if (row.index + 1 >= table.getRowCount()) { return ; } return getValue(); }, enableSorting: false, }), columnHelper.accessor('value', { header: 'Value', cell: (value) => , enableSorting: false, }), columnHelper.accessor('', { header: 'Actions', cell: ({ row, table }) => { if (row.index + 1 >= table.getRowCount()) { return ( ); } return ( ); }, enableSorting: false, }), ]; function Attributes() { return ; } export default Attributes;