2024-02-10 20:33:24 -05:00
|
|
|
import Head from "next/head";
|
|
|
|
import Header from "./header";
|
|
|
|
|
|
|
|
type LayoutProps = {
|
|
|
|
user?: any;
|
|
|
|
loading?: boolean;
|
|
|
|
children: React.ReactNode;
|
|
|
|
};
|
|
|
|
|
|
|
|
const Layout = ({ user, loading = false, children }: LayoutProps) => {
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<Head>
|
2024-02-11 20:44:27 -05:00
|
|
|
<title>comissions.app</title>
|
2024-02-10 20:33:24 -05:00
|
|
|
</Head>
|
|
|
|
|
|
|
|
<Header user={user} loading={loading} />
|
|
|
|
|
|
|
|
<main>
|
|
|
|
<div className="container">{children}</div>
|
|
|
|
</main>
|
|
|
|
|
|
|
|
<style jsx>{`
|
|
|
|
.container {
|
2024-02-15 21:49:12 -05:00
|
|
|
max-width: 82rem;
|
2024-02-10 20:33:24 -05:00
|
|
|
margin: 1.5rem auto;
|
|
|
|
}
|
|
|
|
`}</style>
|
|
|
|
<style jsx global>{`
|
|
|
|
body {
|
|
|
|
margin: 0;
|
|
|
|
color: #333;
|
|
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
|
|
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
|
|
|
|
}
|
|
|
|
`}</style>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Layout;
|