Skip to content
Snippets Groups Projects
Page.tsx 523 B
Newer Older
import { Drawer } from "./Drawer";
import { Title } from "./Title";
Jacopo Gasparetto's avatar
Jacopo Gasparetto committed

type Props = {
  title: string,
  [children:string]: any
Jacopo Gasparetto's avatar
Jacopo Gasparetto committed
};

export const Page = (props: Props) => {
Jacopo Gasparetto's avatar
Jacopo Gasparetto committed
  return (
    <>
      <div id="sidebar" className="w-64 left-0 top-0 h-screen fixed z-1 overflow-auto">
        <Drawer />
      </div>
      <div className="ml-64 p-8 w-full">
        <Title>{props.title}</Title>
        <hr className="h-px w-full my-8 bg-gray-200 border-0 dark:bg-gray-700"></hr>
        {props.children}
Jacopo Gasparetto's avatar
Jacopo Gasparetto committed
  );
}