link-stack/apps/metamigo-frontend/app/_components/layout/Layout.tsx
2023-07-18 07:02:07 +00:00

19 lines
444 B
TypeScript

"use client";
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} />;
export const Layout = (props: LayoutProps) => (
<RaLayout
{...props}
appBar={AppBar}
menu={Menu as any}
sidebar={CustomSidebar}
// @ts-ignore
theme={theme}
/>
);