"use client"; /** * 게이트 ①·③ 자동 승인 — (a) 시작 화면 옵션으로 확정(2026-08-28). * /playreel 시작 화면: 스위치 2개 + 잠긴 2·4·5단계 안내. 되돌리는 자리도 여기. * 아이콘은 SVG만(이모지 금지). */ import { GATE_META, type GateKey } from "@/lib/playreel"; import { AUTO_APPROVABLE, setAutoApprove, useAutoApprove, type AutoApprovable } from "@/lib/prefs"; export const isAutoApprovable = (g: GateKey | null | undefined): g is AutoApprovable => !!g && (AUTO_APPROVABLE as readonly string[]).includes(g); const AUTO_COPY: Record = { fetch_confirm: "무료 · 상세페이지에서 읽은 정보와 기본 섹션을 그대로 사용", narration_confirm: "무료 · 자동 생성 문장과 기본 목소리로 바로 진행", }; const Lock = () => ( ); function Switch({ on, onChange, label }: { on: boolean; onChange: (v: boolean) => void; label: string }) { return ( onChange(!on)}> ); } export function AutoApprovePanel() { const prefs = useAutoApprove(); return ( 자동화 승인 단계 설정 {AUTO_APPROVABLE.map((g) => { const m = GATE_META[g]; return ( {m.step}단계 · {m.name} {AUTO_COPY[g]} setAutoApprove(g, v)} label={`${m.name} 자동 승인`} /> ); })} 2 · 4 · 5단계 크레딧이 들거나 되돌릴 수 없어 항상 확인합니다 ); }
자동화 승인 단계 설정
{m.step}단계 · {m.name}
{AUTO_COPY[g]}
2 · 4 · 5단계
크레딧이 들거나 되돌릴 수 없어 항상 확인합니다