import type {ReactNode} from 'react'; import {Link, NavLink} from 'react-router'; import {cn} from '@/lib/utils'; import {useAuthStore} from '@/stores/auth'; /** 로그인 전 화면(랜딩·요금·쇼케이스)의 껍데기. */ const NAV = [ {to: '/showcase', label: '이렇게 나옵니다'}, {to: '/pricing', label: '요금'}, ]; export function MarketingShell({ children, showAuthCta = true, }: { children: ReactNode; showAuthCta?: boolean; }) { const user = useAuthStore((s) => s.user); return (
Web4Ai
{/* 이미 사이트를 가진 사장님에게 [로그인] 을 다시 보여주지 않는다 — 갈 곳은 내 사이트다. */} {showAuthCta && (user ? ( 내 사이트 ) : ( 로그인 ))}
{children}
); } /** 랜딩의 한 켜. */ export function Section({ children, className, muted = false, }: { children: ReactNode; className?: string; muted?: boolean; }) { return (
{children}
); } export function SectionHead({eyebrow, title, description}: {eyebrow?: string; title: string; description?: string}) { return (
{eyebrow &&

{eyebrow}

}

{title}

{description &&

{description}

}
); }