2023-06-28 12:55:24 +00:00
|
|
|
"use client";
|
|
|
|
|
|
2023-02-13 12:41:30 +00:00
|
|
|
import { Layout as RaLayout, LayoutProps, Sidebar } from "react-admin";
|
|
|
|
|
import AppBar from "./AppBar";
|
|
|
|
|
import Menu from "./Menu";
|
|
|
|
|
import { theme } from "./themes";
|
|
|
|
|
|
|
|
|
|
const CustomSidebar = (props: any) => <Sidebar {...props} size={200} />;
|
|
|
|
|
|
2023-06-28 12:55:24 +00:00
|
|
|
export const Layout = (props: LayoutProps) => (
|
2023-03-15 12:17:43 +00:00
|
|
|
<RaLayout
|
|
|
|
|
{...props}
|
|
|
|
|
appBar={AppBar}
|
2023-07-18 07:02:07 +00:00
|
|
|
menu={Menu as any}
|
2023-03-15 12:17:43 +00:00
|
|
|
sidebar={CustomSidebar}
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
theme={theme}
|
|
|
|
|
/>
|
|
|
|
|
);
|