// @ts-nocheck import styled from 'styled-components'; import { TotalLineBorderStyle, TotalLineTextStyle, T, TotalLines, TotalLine, } from '@/components'; import { useBillDrawerContext } from './BillDrawerProvider'; /** * Bill read-only details table footer. */ export function BillDetailTableFooter() { const { bill } = useBillDrawerContext(); return ( } value={bill.subtotal_formatted} borderStyle={TotalLineBorderStyle.SingleDark} /> {bill.taxes.map((taxRate) => ( ))} {bill.discount_amount > 0 && ( )} {bill.adjustment_formatted && ( )} } value={bill.total_formatted} borderStyle={TotalLineBorderStyle.DoubleDark} textStyle={TotalLineTextStyle.Bold} /> } value={bill.formatted_payment_amount} /> } value={bill.formatted_due_amount} textStyle={TotalLineTextStyle.Bold} /> ); } export const BillDetailsFooterRoot = styled.div``; export const BillTotalLines = styled(TotalLines)` margin-left: auto; `;