mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-24 16:49:48 +00:00
28 lines
610 B
TypeScript
28 lines
610 B
TypeScript
import React from 'react';
|
|
import {
|
|
CommercialDocFooter,
|
|
T,
|
|
If,
|
|
DetailsMenu,
|
|
DetailItem,
|
|
} from '@/components';
|
|
|
|
import { useBillDrawerContext } from './BillDrawerProvider';
|
|
|
|
/**
|
|
* Bill detail footer.
|
|
* @returns {React.JSX}
|
|
*/
|
|
export default function BillDetailFooter() {
|
|
const { bill } = useBillDrawerContext();
|
|
return (
|
|
<CommercialDocFooter>
|
|
<DetailsMenu direction={'horizantal'} minLabelSize={'180px'}>
|
|
<If condition={bill.note}>
|
|
<DetailItem label={<T id={'note'} />}>{bill.note}</DetailItem>
|
|
</If>
|
|
</DetailsMenu>
|
|
</CommercialDocFooter>
|
|
);
|
|
}
|