/* ============================================================================ * 서명전에 — TDS Result 컴포넌트 * · 특정 작업의 결과(성공/에러/빈 상태)를 전면 또는 섹션 단위로 * 보여주는 "페이지 템플릿" 컴포넌트. * · 구조: figure (옵션) → title (h5) → description (옵션) → button (옵션) * * · 주의 — 네이밍 충돌: * 화면(screen) 레이어의 `ResultScreen` (= 분석 리포트) 과는 완전히 * 다른 컴포넌트입니다. 이쪽은 범용 상태 안내용 템플릿이에요. * 글로벌은 `window.Result` / `window.ResultScreen` 로 분리. * * · 두 서브: * Result — 컨테이너 * Result.Button — description 아래에 쌓이는 액션 버튼 * (기본 fill primary full-width, TDS Button 위임) * * · ResultProps: * figure ReactNode (옵션) — title 위 시각 요소 (Asset/IOSIcon/ 등) * title * ReactNode —
로 자동 변환 (필수) * description ReactNode (옵션) — 보조 설명. 문자열이면 \n 줄바꿈 인정 * button ReactNode (옵션) — Result.Button 또는 TDS Button * align "center" | "start" (기본 "center") * size "default" | "compact" (기본 "default") — 여백 조절 * className, style, id 패스스루 * * · 접근성 (스펙 준수): * · title 은
로 렌더 * · Result.Button 은 ); } Result.Button = ResultButton; window.Result = Result; window.ResultButton = ResultButton; Object.assign(window, { Result, ResultButton });