2024-04-01 14:42:08 +02:00
|
|
|
import { Dispatch, SetStateAction } from 'react'
|
2024-04-01 15:49:03 +02:00
|
|
|
import { Select, FormInline } from '@/components'
|
2024-04-01 14:42:08 +02:00
|
|
|
import { type Market } from '@/features/strategies'
|
|
|
|
|
|
|
|
export function FormMarket({
|
|
|
|
market,
|
|
|
|
setMarket
|
|
|
|
}: {
|
|
|
|
market: Market
|
|
|
|
setMarket: Dispatch<SetStateAction<Market>>
|
|
|
|
}) {
|
|
|
|
const options = [
|
|
|
|
{ value: 'market', label: 'All Markets' },
|
|
|
|
{ value: 'uniswap-v3', label: 'Uniswap v3' }
|
|
|
|
]
|
|
|
|
return (
|
2024-04-01 15:49:03 +02:00
|
|
|
<FormInline>
|
2024-04-01 14:42:08 +02:00
|
|
|
<Select
|
|
|
|
options={options}
|
|
|
|
value={market}
|
|
|
|
onChange={(e) => setMarket(e.target.value as Market)}
|
|
|
|
style={{ paddingRight: '1.25rem' }}
|
|
|
|
/>
|
2024-04-01 15:49:03 +02:00
|
|
|
</FormInline>
|
2024-04-01 14:42:08 +02:00
|
|
|
)
|
|
|
|
}
|