16 lines
352 B
TypeScript
16 lines
352 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 style={{ height: '100%' }}>
|
||
|
|
<Box shrink="No">{nav}</Box>
|
||
|
|
<Box grow="Yes">{children}</Box>
|
||
|
|
</Box>
|
||
|
|
);
|
||
|
|
}
|