import {LocationDescriptorObject} from 'history'; import {GridColumnOrder} from 'sentry/components/gridEditable'; import SortLink from 'sentry/components/gridEditable/sortLink'; type Sort = { column: K; direction: 'asc' | 'desc'; }; interface TableHeadProps { currentSort?: Sort; generateSortLink?: (column: K) => () => LocationDescriptorObject | undefined; rightAlignedColumns?: Set; sortableColumns?: Set; } export function renderTableHead({ currentSort, generateSortLink, rightAlignedColumns, sortableColumns, }: TableHeadProps) { return (column: GridColumnOrder, _columnIndex: number) => { return ( undefined)} /> ); }; }