* handle client boot error in loading screen * use sync state hook in client root * add loading screen options * removed extra condition in loading finish * add sync connection status bar
15 lines
336 B
TypeScript
15 lines
336 B
TypeScript
import React, { ReactNode } from 'react';
|
|
import { Box } from 'folds';
|
|
|
|
type ClientLayoutProps = {
|
|
nav: ReactNode;
|
|
children: ReactNode;
|
|
};
|
|
export function ClientLayout({ nav, children }: ClientLayoutProps) {
|
|
return (
|
|
<Box grow="Yes">
|
|
<Box shrink="No">{nav}</Box>
|
|
<Box grow="Yes">{children}</Box>
|
|
</Box>
|
|
);
|
|
}
|