import React, { ReactNode } from 'react' import { cycleSortDirection } from '../hooks/use-metric-order-by' import { SortDirection } from '../../types/query-api' import classNames from 'classnames' export const SortButton = ({ children, toggleSort, sortDirection }: { children: ReactNode toggleSort: () => void sortDirection: SortDirection | null }) => { const next = cycleSortDirection(sortDirection) return ( ) }