19 lines
374 B
TypeScript
19 lines
374 B
TypeScript
import React from "react";
|
|
import Navbar from "./Navbar";
|
|
import Footer from "./Footer";
|
|
|
|
interface LayoutProps {
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export default function Layout({ children }: LayoutProps) {
|
|
return (
|
|
<div>
|
|
<Navbar />
|
|
<div style={{ minHeight: "100vh", paddingTop: "60px" }}>
|
|
{children}
|
|
</div>
|
|
<Footer />
|
|
</div>
|
|
);
|
|
}
|