import {
Container,
HStack,
Link,
ThemeSwitch,
useTheme,
VStack,
Text,
Separator,
} from '@ermnvldmr/ui';
import React from 'react';
/**
* Props for the IndexLayout component.
*/
export interface IndexLayoutProps {
/** Main content slot */
children: React.ReactNode;
}
/**
* The root layout for the www service.
* Handles global theme state and provides common structure.
*
* @param props - The component props.
* @param props.children - Main content slot.
* @returns A React element representing the index layout.
* @example
* ```tsx
* Content
* ```
*/
export function IndexLayout({ children }: IndexLayoutProps): React.JSX.Element {
// Initialize theme side-effects
useTheme();
const currentYear = new Date().getFullYear();
return (
{children}
© {currentYear} Vladimir Eremin
CC-BY 4.0
);
}