22 lines
774 B
TypeScript
22 lines
774 B
TypeScript
import { ReactNode } from "react";
|
|
import "app/_styles/global.css";
|
|
import "@fontsource/poppins/400.css";
|
|
import "@fontsource/poppins/700.css";
|
|
import "@fontsource/roboto/400.css";
|
|
import "@fontsource/roboto/700.css";
|
|
import "@fontsource/playfair-display/900.css";
|
|
// import getConfig from "next/config";
|
|
// import { LicenseInfo } from "@mui/x-data-grid-pro";
|
|
import { InternalLayout } from "app/_components/InternalLayout";
|
|
import { headers } from 'next/headers'
|
|
|
|
type LayoutProps = {
|
|
children: ReactNode;
|
|
};
|
|
|
|
export default function Layout({ children }: LayoutProps) {
|
|
const allHeaders = headers();
|
|
const embedded = Boolean(allHeaders.get('x-leafcutter-embedded'));
|
|
console.log({embedded})
|
|
return <InternalLayout embedded={embedded}>{children}</InternalLayout>;
|
|
}
|