import * as React from 'react'; import { Link } from 'react-router-dom'; import { FlexTable } from '../..'; import { CustomColumn } from '.'; /** * A LinkColumn should be used to generate a link based on some property * in the items passed to its parent data table, such as an ID field. * * Pass a function to getLink such as (item) => `/someroute/${item.ID}` to * generate a link. * * The link is powered internally by react-router * * @param {any} { item, getLink, children, hideHeader, ...attrs } * @returns */ export const LinkColumn = ({ item, getLink, children, hideHeader, ...attrs }: FlexTable.LinkColumnProps) => { const render = (item: T) => {children} return };