'use client'; import { TrendingUp, TrendingDown, Lightbulb, Target, Megaphone, User } from 'lucide-react'; import type { StrengthItem, WeaknessItem } from '../types'; import { DOMAIN_COLORS, COMPLEXITY_LABELS } from '../types'; import { getSubcodeDefinition } from '@/lib/taxonomy/data'; interface StrengthsWeaknessesProps { strengths: StrengthItem[]; weaknesses: WeaknessItem[]; onStrengthClick?: (subcode: string) => void; onWeaknessClick?: (subcode: string) => void; } export function StrengthsWeaknesses({ strengths, weaknesses, onStrengthClick, onWeaknessClick, }: StrengthsWeaknessesProps) { const hasData = strengths.length > 0 || weaknesses.length > 0; if (!hasData) { return (

Not enough data to identify strengths and weaknesses.

More reviews are needed for analysis.

); } return (
{/* Strengths Panel */}

Your Strengths

Protect & amplify these

{strengths.length === 0 ? (
No strong positive patterns detected yet.
) : ( strengths.map((strength) => ( )) )}
{/* Weaknesses Panel */}

Areas to Improve

Fix these to boost rating

{weaknesses.length === 0 ? (
No significant issues detected. Great job!
) : ( weaknesses.map((weakness) => ( )) )}
); }