import { useState } from "react"; import { useNavigate } from "react-router-dom"; import DownloadIcon from "@/assets/report/download.svg?react"; import { Button } from "@/components/atoms/Button"; import { useCurrentMarketingPlan } from "@/features/plan/hooks/useCurrentMarketingPlan"; function PlanCtaRocketIcon({ className }: { className?: string }) { return ( ); } /** `DEMO/src/components/plan/PlanCTA.tsx` 레이아웃·카피·버튼 구성과 동일 (PDF는 Phase 1 목 동작). */ export function PlanCtaSection() { const navigate = useNavigate(); const { data, error } = useCurrentMarketingPlan(); const [isExporting, setIsExporting] = useState(false); if (error || !data) { return null; } const planId = data.id; const exportPdf = () => { setIsExporting(true); window.setTimeout(() => setIsExporting(false), 900); }; return ( 콘텐츠 제작을 시작하세요 INFINITH가 브랜딩부터 콘텐츠 제작, 채널 배포까지 자동화합니다. navigate(`/studio/${planId}`)} className="inline-flex items-center justify-center gap-2 px-6 py-3 text-sm font-medium hover:shadow-lg transition-shadow" > 콘텐츠 제작 시작 {isExporting ? ( ) : ( )} 플랜 다운로드 ); }
INFINITH가 브랜딩부터 콘텐츠 제작, 채널 배포까지 자동화합니다.