import React from 'react'; import styled from 'styled-components'; import { T, TotalLines, TotalLine, TotalLineBorderStyle, TotalLineTextStyle, } from 'components'; import { useVendorCreditDetailDrawerContext } from './VendorCreditDetailDrawerProvider'; import { FormatNumber } from '../../../components'; /** * Vendor Credit detail panel footer. */ export default function VendorCreditDetailDrawerFooter() { const { vendorCredit } = useVendorCreditDetailDrawerContext(); return ( } value={} borderStyle={TotalLineBorderStyle.SingleDark} /> } value={vendorCredit.formatted_amount} borderStyle={TotalLineBorderStyle.DoubleDark} textStyle={TotalLineTextStyle.Bold} /> ); } export const VendorCreditFooterRoot = styled.div``; export const VendorCreditTotalLines = styled(TotalLines)` margin-left: auto; `;