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