mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
31 lines
722 B
TypeScript
31 lines
722 B
TypeScript
// @ts-nocheck
|
|
import React from 'react';
|
|
|
|
import {
|
|
T,
|
|
CommercialDocFooter,
|
|
DetailsMenu,
|
|
If,
|
|
DetailItem,
|
|
} from '@/components';
|
|
import { usePaymentMadeDetailContext } from './PaymentMadeDetailProvider';
|
|
|
|
/**
|
|
* Payment made - Details panel - Footer.
|
|
*/
|
|
export function PaymentMadeDetailFooter() {
|
|
const { paymentMade } = usePaymentMadeDetailContext();
|
|
|
|
return (
|
|
<CommercialDocFooter>
|
|
<DetailsMenu direction={'horizantal'} minLabelSize={'180px'}>
|
|
<If condition={paymentMade.statement}>
|
|
<DetailItem label={<T id={'payment_made.details.statement'} />}>
|
|
{paymentMade.statement}
|
|
</DetailItem>
|
|
</If>
|
|
</DetailsMenu>
|
|
</CommercialDocFooter>
|
|
);
|
|
}
|