import linkCellComponent from '../components/hoc/linkCellComponent'; import { LinkColumnOptions, TableColumn, TableItem } from '../typings'; import textColumn from './textColumn'; const linkColumn = = TableItem>( id: string, options: LinkColumnOptions, ): TableColumn => { const column = textColumn(id, options); return Object.assign({}, column, { CellComponent: linkCellComponent(options.href), }); }; export default linkColumn;