forked from React-Group/interstellar_ai
		
	
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			953 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			953 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { ReactNode } from 'react';
 | 
						|
 | 
						|
// Metadata for the application, used for SEO and page information
 | 
						|
export const metadata = {
 | 
						|
  title: 'AI Assistant | Interstellar Development', // Title of the page
 | 
						|
  description: 'A little AI chat that is able to assist you in little tasks', // Description of the page
 | 
						|
};
 | 
						|
 | 
						|
// RootLayout component definition
 | 
						|
export default function RootLayout({ children }: { children: ReactNode }) {
 | 
						|
  return (
 | 
						|
    <html lang="en"> {/* Set the language of the document */}
 | 
						|
      <head>
 | 
						|
        <title>{metadata.title}</title> {/* Set the page title */}
 | 
						|
        <meta name="description" content={metadata.description} /> {/* Set the page description for SEO */}
 | 
						|
        {/* Link to the favicon for the site */}
 | 
						|
        <link rel="icon" href="./favicon.ico" type="image/x-icon" />
 | 
						|
      </head>
 | 
						|
      <body>
 | 
						|
        <main>{children}</main> {/* Render the child components inside the main element */}
 | 
						|
      </body>
 | 
						|
    </html>
 | 
						|
  );
 | 
						|
}
 |