import { useTranslation } from "react-i18next" import CornerDownRightIcon from "../../../../components/fundamentals/icons/corner-down-right-icon" import { formatAmountWithSymbol } from "../../../../utils/prices" type ShippingLineProps = { type: "return" | "replacement" title: string price?: number currencyCode: string } export const SummaryShippingLine = ({ type, title, price, currencyCode, }: ShippingLineProps) => { const { t } = useTranslation() return (

{type === "return" ? "Return shipping" : "Replacement shipping"}

{title}

{price ? formatAmountWithSymbol({ amount: price, currency: currencyCode, }) : t("rma-summaries-free", "Free")}

) }