import React from "react" import { RefundEvent } from "../../../hooks/use-build-timeline" import { formatAmountWithSymbol } from "../../../utils/prices" import RefundIcon from "../../fundamentals/icons/refund" import EventContainer from "./event-container" type RefundEventProps = { event: RefundEvent } const Refund: React.FC = ({ event }) => { const args = { icon: , title: "Refund", time: event.time, midNode: ( {formatAmountWithSymbol({ amount: event.amount, currency: event.currencyCode, })} ), children: (
{event.reason && ( {`${event.reason .slice(0, 1) .toUpperCase()}${event.reason.slice(1)}`} )} {event.note && (
Note: {event.note}
)}
), } return } export default Refund