import { useTranslation } from "react-i18next"
import { DisplayTotal } from "./display-total"
export const PaymentDetails = ({
currency,
swapAmount,
manualRefund,
swapRefund,
returnRefund,
paidTotal,
refundedTotal,
}) => {
const { t } = useTranslation()
if (swapAmount + manualRefund + swapRefund + returnRefund === 0) {
return null
}
return (
<>
{!!swapAmount && (
)}
{!!swapRefund && (
)}
{!!returnRefund && (
)}
{!!manualRefund && (
)}
>
)
}