import { FC, ReactNode } from 'react'; import { Box, CircularProgress, Typography } from '@mui/material'; import { Theme } from '../../core/theme/types'; import { BrjLogo } from '../BrjLogo'; type InitLoaderProps = { children: ReactNode; loading?: boolean; }; export const InitLoader: FC = ({ children, loading }) => ( <> {loading ?? false ? ( The BRJ Dashboard is loading. ) : ( children )} );