import { motion } from 'motion/react'; import { Calendar, Globe, MapPin } from 'lucide-react'; import { ScoreRing } from './ui/ScoreRing'; 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 }; socialHandles?: Record; } export default function ReportHeader({ clinicName, logoImage, clinicNameEn, overallScore, date, targetUrl, location, }: ReportHeaderProps) { return (
{/* Animated blobs */}
{/* Left: Text content */} Marketing Intelligence Report {logoImage && ( {clinicName} { (e.target as HTMLImageElement).style.display = 'none'; }} /> )} {clinicName} {clinicNameEn} {formatDate(date)} {targetUrl && ( {targetUrl} )} {location} {/* Right: Score ring */}

Overall Score

); }