import { FormGroup, Select } from '@vegaprotocol/ui-toolkit'; import { OrderTimeInForce, OrderType } from '@vegaprotocol/wallet'; import type { Order } from './use-order-state'; interface TimeInForceSelectorProps { order: Order; onSelect: (tif: OrderTimeInForce) => void; } export const TimeInForceSelector = ({ order, onSelect, }: TimeInForceSelectorProps) => { const options = order.type === OrderType.Limit ? Object.entries(OrderTimeInForce) : Object.entries(OrderTimeInForce).filter( ([_, value]) => value === OrderTimeInForce.FOK || value === OrderTimeInForce.IOC ); return ( ); };