mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
16 lines
323 B
TypeScript
16 lines
323 B
TypeScript
// @ts-nocheck
|
|
import React from 'react';
|
|
import { useApplicationBoot } from '@/components';
|
|
|
|
/**
|
|
* Private pages provider.
|
|
*/
|
|
export function PrivatePagesProvider({
|
|
// #ownProps
|
|
children,
|
|
}) {
|
|
const { isLoading } = useApplicationBoot();
|
|
|
|
return <React.Fragment>{!isLoading ? children : null}</React.Fragment>;
|
|
}
|