import { cx } from '../../lib/utils' import { useSheet } from '../sheetContext' import { EFFECTIVE_DATE, type LegalBlock, type LegalLink } from './common' import { PRIVACY } from './privacy' import { TERMS } from './terms' const DOCS = { privacy: PRIVACY, terms: TERMS } as const export type LegalKind = keyof typeof DOCS function Item({ it }: { it: string | LegalLink }) { if (typeof it === 'string') return <>{it}> return ( <> {it.text} {it.note && ` · ${it.note}`} > ) } function Block({ b }: { b: LegalBlock }) { if (typeof b === 'string') return
{b}
return (시행일 {EFFECTIVE_DATE}
{doc.intro}
{doc.sections.map((s) => (가입하면{' '} 과{' '} 에 동의하게 됩니다
) } export function LegalLinks({ className }: { className?: string }) { const { open } = useSheet() return () }