mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
31 lines
755 B
JavaScript
31 lines
755 B
JavaScript
import React from 'react';
|
|
|
|
import {
|
|
CommercialDocFooter,
|
|
T,
|
|
If,
|
|
DetailsMenu,
|
|
DetailItem,
|
|
} from 'components';
|
|
import { usePaymentReceiveDetailContext } from './PaymentReceiveDetailProvider';
|
|
|
|
/**
|
|
* Payment receive detail footer.
|
|
* @returns {React.JSX}
|
|
*/
|
|
export default function PaymentReceiveDetailFooter() {
|
|
const { paymentReceive } = usePaymentReceiveDetailContext();
|
|
|
|
return (
|
|
<CommercialDocFooter>
|
|
<DetailsMenu direction={'horizantal'} minLabelSize={'180px'}>
|
|
<If condition={paymentReceive.statement}>
|
|
<DetailItem label={<T id={'payment_receive.details.statement'} />}>
|
|
{paymentReceive.statement}
|
|
</DetailItem>
|
|
</If>
|
|
</DetailsMenu>
|
|
</CommercialDocFooter>
|
|
);
|
|
}
|