import React from "react" import { makeStyles } from "@material-ui/core/styles" import { Footer } from "./Footer" import { Navbar } from "../Navbar" export const Page: React.FC<{ children: React.ReactNode }> = ({ children }) => { // TODO: More interesting styling here! const styles = useStyles() const header = (
) const footer = (
) const body =
{children}
return (
{header} {body} {footer}
) } const useStyles = makeStyles((theme) => ({ root: { display: "flex", flexDirection: "column", }, header: { flex: 0, }, body: { height: "100%", flex: 1, }, footer: { flex: 0, }, }))