import React from "react" import Button from "../../fundamentals/button" import TrashIcon from "../../fundamentals/icons/trash-icon" import { AmountInput } from "../amount-input" type RMAShippingPriceProps = { inclTax: boolean useCustomShippingPrice: boolean shippingPrice: number | undefined currencyCode: string updateShippingPrice: (price: number | undefined) => void setUseCustomShippingPrice: (useCustomShippingPrice: boolean) => void } const RMAShippingPrice: React.FC = ({ useCustomShippingPrice, inclTax, shippingPrice, currencyCode, updateShippingPrice, setUseCustomShippingPrice, }) => { return useCustomShippingPrice ? (
updateShippingPrice(amount ?? 0)} value={shippingPrice} />
) : (
) } export default RMAShippingPrice