import { useHealthQuery } from './hooks/useHealthQuery/useHealthQuery';
import { ErrorAlert } from '../../common/components/atoms/ErrorAlert/ErrorAlert';
import { FullScreenLoader } from '../../common/components/molecules/FullScreenLoader/FullScreenLoader';
import { FunctionComponentWithChildren } from '@ballerine/ui';
export const ServerDownLayout: FunctionComponentWithChildren = ({ children }) => {
const { isSuccess, isLoading } = useHealthQuery();
if (isLoading) return ;
if (isSuccess) return children;
return (
Our services are temporarily down.
);
};