import React from 'react'; import { useTranslation } from 'react-i18next'; import { OrderPaymentsProps } from '../utils/types'; import { OrderPaymentsWrapper, OrderPaymentTitle } from './style'; const OrderPayments = (props: OrderPaymentsProps): JSX.Element => { const { t } = useTranslation(); const { payments } = props; return ( {t('OS.KDS.Card.Payment')} {payments.map((payment) => (
{payment.type}: {payment.amount}
))}
); }; export default OrderPayments;