// @flow import * as React from 'react'; import classNames from 'classnames'; import { SortDirection } from '@box/react-virtualized/dist/es/Table/index'; import IconSortChevron from '../../icons/general/IconSortChevron'; import type { HeaderRendererParams } from './flowTypes'; const { ASC, DESC } = SortDirection; const sortableColumnHeaderRenderer = ({ dataKey, label, sortBy, sortDirection }: HeaderRendererParams) => ( {label} {dataKey === sortBy && ( )} ); export default sortableColumnHeaderRenderer;