import type { NumberFieldElementProps } from '@graphcommerce/ecommerce-ui' import { NumberFieldElement } from '@graphcommerce/ecommerce-ui' import { t } from '@lingui/core/macro' import type { AddProductsToCartMutationVariables } from './AddProductsToCart.gql' import type { AddToCartItemSelector } from './useFormAddProductsToCart' import { useFormAddProductsToCart } from './useFormAddProductsToCart' export type AddToCartQuantityProps = Omit< NumberFieldElementProps, 'error' | 'required' | 'helperText' | 'name' | 'control' | 'rules' > & AddToCartItemSelector export function AddProductsToCartQuantity(props: AddToCartQuantityProps) { const { index = 0, inputProps, ...rest } = props const { control } = useFormAddProductsToCart() return ( ) }