mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
22 lines
403 B
TypeScript
22 lines
403 B
TypeScript
import Alert from "./alert";
|
|
import Footer from "./footer";
|
|
import Meta from "./meta";
|
|
|
|
type Props = {
|
|
preview?: boolean;
|
|
children: React.ReactNode;
|
|
};
|
|
|
|
export default function Layout({ preview, children }: Props) {
|
|
return (
|
|
<>
|
|
<Meta />
|
|
<div className="min-h-screen">
|
|
<Alert preview={preview} />
|
|
<main>{children}</main>
|
|
</div>
|
|
<Footer />
|
|
</>
|
|
);
|
|
}
|