mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
35 lines
815 B
TypeScript
35 lines
815 B
TypeScript
// @ts-nocheck
|
|
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'} />}
|
|
multiline
|
|
>
|
|
{paymentReceive.statement}
|
|
</DetailItem>
|
|
</If>
|
|
</DetailsMenu>
|
|
</CommercialDocFooter>
|
|
);
|
|
}
|