import React from 'react'; import { BusinessDNA } from '../../types'; import { Badge } from './ui/badge'; import { Palette, Users, Sparkles, Eye, Target, Hash, Star, TrendingUp, ExternalLink, Camera, Home, Heart } from 'lucide-react'; import { cn } from '../lib/utils'; interface DNACardProps { dna: BusinessDNA; className?: string; compact?: boolean; } const DNACard: React.FC = ({ dna, className, compact = false }) => { if (compact) { return (

{dna.name}

{dna.tagline && (

{dna.tagline}

)}
{/* Color Palette (mini) */}
{dna.brandColors.palette?.slice(0, 5).map((color, idx) => (
))}
{/* Keywords (mini) */}
{dna.keywords.primary.slice(0, 4).map((keyword, idx) => ( {keyword} ))}
); } return (
{/* Header with gradient */}
Business DNA
{dna.confidence && ( 신뢰도 {Math.round(dna.confidence * 100)}% )}

{dna.name}

{dna.tagline && (

{dna.tagline}

)}
{/* Tone & Manner */}

톤 & 매너

{dna.toneAndManner.primary} {dna.toneAndManner.secondary && ( {dna.toneAndManner.secondary} )}

{dna.toneAndManner.description}

{/* Target Customers */}

타겟 고객

{dna.targetCustomers.primary} {dna.targetCustomers.secondary?.map((target, idx) => ( {target} ))}
{dna.targetCustomers.ageRange && (

예상 연령대: {dna.targetCustomers.ageRange}

)} {dna.targetCustomers.characteristics && (
{dna.targetCustomers.characteristics.map((char, idx) => ( {char} ))}
)}
{/* Brand Colors */}

브랜드 컬러

{dna.brandColors.palette?.map((color, idx) => (
{color}
))}

{dna.brandColors.mood}

{/* Visual Style */}

시각적 스타일

인테리어

{dna.visualStyle.interior}

외관

{dna.visualStyle.exterior}

분위기

{dna.visualStyle.atmosphere}

추천 사진 스타일: {dna.visualStyle.photoStyle}

{dna.visualStyle.suggestedFilters && (
{dna.visualStyle.suggestedFilters.map((filter, idx) => ( {filter} ))}
)}
{/* Keywords & Hashtags */}

키워드 & 해시태그

{dna.keywords.primary.map((keyword, idx) => ( {keyword} ))}
{dna.keywords.secondary && (
{dna.keywords.secondary.map((keyword, idx) => ( {keyword} ))}
)} {dna.keywords.hashtags && (
{dna.keywords.hashtags.map((tag, idx) => ( {tag} ))}
)}
{/* Unique Selling Points */}

차별화 포인트

    {dna.uniqueSellingPoints.map((usp, idx) => (
  • {usp}
  • ))}
{/* Mood */}

분위기 & 감정

{dna.mood.primary}
{dna.mood.emotions.map((emotion, idx) => ( {emotion} ))}
{/* Sources */} {dna.sources && dna.sources.length > 0 && (

분석 소스

{dna.sources.map((source, idx) => ( {new URL(source).hostname} ))}
)} {/* Analyzed At */} {dna.analyzedAt && (

분석 시간: {new Date(dna.analyzedAt).toLocaleString('ko-KR')}

)}
); }; export default DNACard;