16 lines
418 B
TypeScript
16 lines
418 B
TypeScript
import { FunctionComponent, PropsWithChildren } from "react";
|
|
import styles from "./Layout.module.css";
|
|
import { Outlet } from "react-router-dom";
|
|
|
|
export interface LayoutProps extends PropsWithChildren {}
|
|
|
|
export const Layout: FunctionComponent<LayoutProps> = ({ children }) => {
|
|
return (
|
|
<div className={styles.root}>
|
|
<div className={styles.container}>
|
|
<Outlet />
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|