import { motion } from 'motion/react'; import { Calendar, Globe, MapPin } from 'lucide-react'; import { ScoreRing } from './ui/ScoreRing'; import { ChannelLinkButtons, type ChannelHandles } from '@/shared/ui/channel-link-buttons'; import { PageContainer } from '@/shared/ui/page-container'; function formatDate(raw: string): string { try { return new Date(raw).toLocaleDateString('ko-KR', { year: 'numeric', month: 'long', day: 'numeric', }); } catch { return raw; } } interface ReportHeaderProps { clinicName: string; clinicNameEn: string; overallScore: number; date: string; targetUrl: string; location: string; logoImage?: string; brandColors?: { primary: string; accent: string; text: string }; /** 등록된 채널 핸들/URL — 외부 새 탭으로 이동 버튼 묶음을 렌더링 */ socialHandles?: ChannelHandles; } export default function ReportHeader({ clinicName, logoImage, brandColors, clinicNameEn, overallScore, date, targetUrl, location, socialHandles, }: ReportHeaderProps) { return (
{/* Animated blobs */}
{/* Left: Text content */} Marketing Intelligence Report {logoImage && ( {clinicName} { (e.target as HTMLImageElement).style.display = 'none'; }} /> )} {clinicName} {clinicNameEn} {formatDate(date)} {targetUrl} {location} {/* 등록된 채널 바로가기 */} {socialHandles && ( )} {/* Right: Score ring */}

Overall Score

); }