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