/** * UserReportPage — `/clinics/:clinicId/report/:id` * * 계약된 병원 유저가 워크스페이스 안에서 보는 리포트 화면. * 본문은 GuestReportPage 와 동일하지만: * - 상단에 워크스페이스 액션바 (워크스페이스로 돌아가기, 플랜 생성, 다시 분석) * - 하단의 도입 문의 CTA 없음 */ import { Link, useParams } from 'react-router'; import { ArrowLeft, Sparkles, RefreshCw } from 'lucide-react'; import { useReportPageData } from '../hooks/useReportPageData'; import { ReportNav } from '../components/ReportNav'; import { ScreenshotProvider } from '../stores/ScreenshotContext'; import { REPORT_SECTIONS } from '@/shared/constants/reportSections'; import ReportBody from '../components/ReportBody'; import { DownloadMenuButton } from '../components/DownloadMenuButton'; export default function UserReportPage() { const { clinicId, id } = useParams<{ clinicId: string; id: string }>(); const { data, isLoading, error, enrichStatus } = useReportPageData(id); if (isLoading) { return (

리포트를 불러오는 중...

); } if (error || !data) { return (

오류가 발생했습니다

{error ?? '리포트를 찾을 수 없습니다.'}

); } return (
워크스페이스로 } rightSlot={
다시 분석 마케팅 기획 보기
} /> {enrichStatus === 'loading' && (
채널 데이터 보강 중...
)}
); }