import { useTranslation } from 'next-i18next' import { FunctionComponent } from 'react' interface TabButtonsProps { activeValue: string onChange: (x: any) => void values: [string, number][] showBorders?: boolean rounded?: boolean fillWidth?: boolean } const TabButtons: FunctionComponent = ({ activeValue, values, onChange, showBorders = false, rounded = false, fillWidth = false, }) => { const { t } = useTranslation(['common', 'swap', 'token', 'trade']) return (
{values.map(([label, count], i) => (
))}
) } export default TabButtons