Files
jaengseung-made/app/components/DashboardShell.tsx
gahusb ac9b70fb5e feat(shell): DashboardShell STANDALONE_PATHS에 /gyeol 추가
CONTOUR 설문 페이지는 자체 시각 정체성 — TopNav/푸터/카카오 모두 숨김.
풀스크린 설문 UI 집중도 보장.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 05:34:53 +09:00

19 lines
477 B
TypeScript

'use client';
import { usePathname } from 'next/navigation';
import PublicShell from './PublicShell';
const STANDALONE_PATHS = ['/login', '/signup', '/admin', '/gyeol'];
export default function DashboardShell({ children }: { children: React.ReactNode }) {
const pathname = usePathname();
const isStandalone = STANDALONE_PATHS.some((p) => pathname.startsWith(p));
if (isStandalone) {
return <>{children}</>;
}
return <PublicShell>{children}</PublicShell>;
}