import { FormGroup, Input } from '@vegaprotocol/ui-toolkit'; import { t, toDecimal } from '@vegaprotocol/react-helpers'; import { validateSize } from '@vegaprotocol/orders'; import type { DealTicketAmountProps } from './deal-ticket-amount'; export type DealTicketMarketAmountProps = Omit< DealTicketAmountProps, 'orderType' >; export const DealTicketMarketAmount = ({ register, price, market, quoteName, }: DealTicketMarketAmountProps) => { const sizeStep = toDecimal(market.positionDecimalPlaces); return (