mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-26 10:23:28 +08:00
21 lines
528 B
TypeScript
21 lines
528 B
TypeScript
import { Outlet } from 'react-router';
|
|
import { Header } from './components/header';
|
|
|
|
export function RootLayoutContainer({ children }: React.PropsWithChildren) {
|
|
return (
|
|
<div className="size-full min-w-0 grid grid-flow-col grid-cols-1 grid-rows-[auto_1fr]">
|
|
<Header className="px-5 py-4" />
|
|
|
|
<main className="size-full min-w-0 overflow-hidden">{children}</main>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default function RootLayout() {
|
|
return (
|
|
<RootLayoutContainer>
|
|
<Outlet />
|
|
</RootLayoutContainer>
|
|
);
|
|
}
|