import { FormGroup } from '@vegaprotocol/ui-toolkit'; import { OrderSide } from '@vegaprotocol/wallet'; import { Toggle } from '@vegaprotocol/ui-toolkit'; import type { Order } from './use-order-state'; interface SideSelectorProps { order: Order; onSelect: (side: OrderSide) => void; } export const SideSelector = ({ order, onSelect }: SideSelectorProps) => { const toggles = Object.entries(OrderSide).map(([label, value]) => ({ label, value, })); return ( onSelect(e.target.value as OrderSide)} /> ); };