mirror of https://github.com/buster-so/buster.git
25 lines
647 B
TypeScript
25 lines
647 B
TypeScript
import type React from 'react';
|
|
import { AppLayout, type LayoutSize } from '@/components/ui/layouts/AppLayout';
|
|
|
|
export const PRIMARY_APP_LAYOUT_ID = 'app-layout';
|
|
|
|
const DEFAULT_LAYOUT: LayoutSize = ['230px', 'auto'];
|
|
|
|
interface IPrimaryAppLayoutProps {
|
|
children: React.ReactNode;
|
|
initialLayout: LayoutSize | null;
|
|
}
|
|
|
|
export const PrimaryAppLayout: React.FC<IPrimaryAppLayoutProps> = ({ children, initialLayout }) => {
|
|
return (
|
|
<AppLayout
|
|
autoSaveId={PRIMARY_APP_LAYOUT_ID}
|
|
defaultLayout={DEFAULT_LAYOUT}
|
|
initialLayout={initialLayout}
|
|
sidebar={<div>Sidebar</div>}
|
|
>
|
|
{children}
|
|
</AppLayout>
|
|
);
|
|
};
|