import React from 'react'; import * as R from 'ramda'; import { FinancialReportBody } from '../FinancialReportPage'; import { FinancialSheetSkeleton } from '../../../components/FinancialSheet'; import PurchasesByItemsTable from './PurchasesByItemsTable'; import { usePurchaseByItemsContext } from './PurchasesByItemsProvider'; import withCurrentOrganization from '../../../containers/Organization/withCurrentOrganization'; /** * Purchases by items. * @returns {JSX.Element} */ function PurchasesByItemsBodyJSX({ // #withPreferences organizationName, }) { const { isLoading } = usePurchaseByItemsContext(); return ( {isLoading ? ( ) : ( )} ); } export const PurchasesByItemsBody = R.compose( withCurrentOrganization(({ organization }) => ({ organizationName: organization.name, })), )(PurchasesByItemsBodyJSX);