import React from 'react'; import { FinancialSheetSkeleton } from '../../../components/FinancialSheet'; import ProfitLossSheetTable from './ProfitLossSheetTable'; import { FinancialReportBody } from '../FinancialReportPage'; import withCurrentOrganization from '../../Organization/withCurrentOrganization'; import { useProfitLossSheetContext } from './ProfitLossProvider'; import { compose } from 'utils'; /** * @returns {React.JSX} */ function ProfitLossBodyJSX({ // #withPreferences organizationName, }) { const { isLoading } = useProfitLossSheetContext(); return ( {isLoading ? ( ) : ( )} ); } export const ProfitLossBody = compose( withCurrentOrganization(({ organization }) => ({ organizationName: organization.name, })), )(ProfitLossBodyJSX);