import type { PaymentCode } from "@/utils/requests/Types"; import PaymentOption from "./PaymentOption"; import Box from "./bases/Box"; import Text from "./bases/Text"; interface Props { paymentType: PaymentCode; reference: string; date: string; amount: number; status: "SUCCESS" | "INITIATED" | "FAILED"; } const TransactionInformationsItem = ({ paymentType, reference, date, amount, status }: Props) => { return ( {/* */} {}} /> {reference} {date} {/* {amount} */} ); }; const AmountColorRenderer = ({ status, amount }: { status: string; amount: number }) => { if (status === "SUCCESS") { return ( {amount} ); } if (status === "INITIATED") { return ( {amount} ); } return ( {amount} ); }; export default TransactionInformationsItem;