16 lines
332 B
TypeScript
16 lines
332 B
TypeScript
// components/Layout.js
|
|
import { Footer } from './footer';
|
|
import { ReactNode } from 'react'; // Import ReactNode
|
|
|
|
interface LayoutProps {
|
|
children: ReactNode; // Define the type of children prop
|
|
}
|
|
export function Layout({ children }: LayoutProps) {
|
|
return (
|
|
<>
|
|
<main>{children}</main>
|
|
<Footer />
|
|
</>
|
|
);
|
|
}
|