import { motion } from 'motion/react'; import { CHANNELS } from '../constants/performance'; function MetricCell({ label, value, delta }: { label: string; value: string; delta: string }) { const isPositive = delta.startsWith('+'); const isNew = delta === 'NEW' || delta === '-'; return (

{label}

{value}

{delta}

); } export function ChannelPerformanceSection() { return (

채널별 성과

{CHANNELS.map((ch, i) => { const Icon = ch.icon; return (

{ch.name}

{ch.posts}개 콘텐츠

= 70 ? 'bg-[#F3F0FF] text-[#4A3A7C]' : ch.score >= 40 ? 'bg-[#FFF6ED] text-[#7C5C3A]' : ch.score > 0 ? 'bg-[#FFF0F0] text-[#7C3A4B]' : 'bg-slate-50 text-slate-400' }`}> {ch.score || '-'}
); })}
); }