import { ReactNode } from 'react'; import { Link, useLocation } from 'react-router-dom'; import { appConfig, isCurrentPath, navigationItems } from '@/config/navigation'; interface LayoutProps { children: ReactNode; } export default function Layout({ children }: LayoutProps) { const location = useLocation(); const navigation = navigationItems.map((item) => ({ ...item, current: isCurrentPath(location.pathname, item.href), })); return (
{/* Header */}
{appConfig.name}
{/* Main Content */}
{children}
{/* Mobile Navigation */} {/* Bottom padding for mobile navigation */}
); }