'use client'; import { usePathname } from 'next/navigation'; import { Header, SurveyHeader, LoadingOverlay, ErrorMessage } from '../components/layout/Common'; import { useDiagnosis } from './contexts/DiagnosisContext'; export default function LayoutContent({ children }: { children: React.ReactNode }) { const pathname = usePathname(); const { currentIndex, surveyItems, loading, error, setError } = useDiagnosis(); const isSurvey = pathname === '/survey'; const isResult = pathname === '/result'; return (