You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
432 B
22 lines
432 B
import { Component } from "@/typings/component";
|
|
import { navHeight } from "./Nav";
|
|
|
|
export const Container: Component<{ navbarOffset?: boolean }> = ({
|
|
children,
|
|
navbarOffset = true
|
|
}) => {
|
|
let height;
|
|
|
|
if (navbarOffset) height = `calc(100vh - ${navHeight}px)`;
|
|
else height = "100vh";
|
|
|
|
return (
|
|
<div
|
|
style={{ minHeight: height }}
|
|
className="container mx-auto py-4 px-2 flex flex-col"
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
};
|