import React from 'react'; import styled from 'styled-components'; import { TotalLineBorderStyle, TotalLineTextStyle, FormatNumber, T, TotalLines, TotalLine, } from '../../../components'; import { useBillDrawerContext } from './BillDrawerProvider'; /** * Bill read-only details table footer. */ export function BillDetailTableFooter() { const { bill } = useBillDrawerContext(); return ( } value={} borderStyle={TotalLineBorderStyle.SingleDark} /> } value={bill.formatted_amount} borderStyle={TotalLineBorderStyle.DoubleDark} textStyle={TotalLineTextStyle.Bold} /> } value={bill.formatted_payment_amount} /> } value={bill.formatted_due_amount} /> ); } export const BillDetailsFooterRoot = styled.div``; export const BillTotalLines = styled(TotalLines)` margin-left: auto; `;