asi-calculator/features/strategies/components/FormMarket.tsx
Matthias Kretschmann 51143f5980
migrate to biome (#28)
* migrate to biome

* get biome config from @kremalicious/config
2024-07-26 13:16:59 +01:00

29 lines
674 B
TypeScript

import { FormInline, Select } from '@/components'
import type { Market } from '@/features/strategies'
import type { Dispatch, SetStateAction } from 'react'
const options = [
{ value: 'market', label: 'All Markets' },
{ value: 'migration', label: 'Migration Tool' },
{ value: 'uniswap-v3', label: 'Uniswap v3' }
]
export function FormMarket({
market,
setMarket
}: {
market: Market
setMarket: Dispatch<SetStateAction<Market>>
}) {
return (
<FormInline>
<Select
options={options}
value={market}
onChange={(e) => setMarket(e.target.value as Market)}
style={{ paddingRight: '1.2rem' }}
/>
</FormInline>
)
}