diff --git a/src/components/layout/Layout.tsx b/src/components/layout/Layout.tsx index ec6d2df..605317b 100644 --- a/src/components/layout/Layout.tsx +++ b/src/components/layout/Layout.tsx @@ -1,19 +1,26 @@ -import React from 'react'; -import { Header } from './Header'; -import { Footer } from './Footer'; +import React from 'react'; // Import the React library for creating React components. +import { Header } from './Header'; // Import the `Header` component from the specified file. +import { Footer } from './Footer'; // Import the `Footer` component from the specified file. +// Define the props type for the `Layout` component. +// `children` is a special React prop that represents the content passed between the opening and closing tags of the component. interface LayoutProps { - children: React.ReactNode; + children: React.ReactNode; // `children` can be any valid React node (elements, strings, numbers, fragments, etc.). } +// Define and export the `Layout` functional component, which accepts `LayoutProps` as props. export function Layout({ children }: LayoutProps) { + // Render the component structure. return (