'use client'; import { SiteHeader } from './site-header'; import { SiteFooter } from './site-footer'; import dynamic from 'next/dynamic'; // Lazy load BackToTop since it's not critical for initial render const BackToTop = dynamic(() => import('./back-to-top').then(mod => ({ default: mod.BackToTop })), { ssr: false, }); interface LayoutShellProps { children: React.ReactNode; recentPosts?: { title: string; url: string }[]; } export function LayoutShell({ children, recentPosts = [] }: LayoutShellProps) { return (