'use client'; import { useEffect, useState } from 'react'; import { getAIAnalysis } from '@/lib/actions/stock-analysis.actions'; import type { StockAIAnalysis } from '@/lib/actions/stock-analysis.helpers'; interface StockAIAnalysisCardProps { symbol: string; companyName?: string | null; } function getStanceClasses(stance: StockAIAnalysis['stance']) { if (stance === 'Bullish') return 'border-emerald-500/30 bg-emerald-500/10 text-emerald-300'; if (stance === 'Bearish') return 'border-rose-500/30 bg-rose-500/10 text-rose-300'; return 'border-amber-500/30 bg-amber-500/10 text-amber-200'; } function renderList(title: string, items: string[]) { return (
No additional signals generated.
)}AI Stock Analysis
The stock dashboard data loaded, but an AI research note could not be generated right now.
AI Stock Analysis
{analysis.summary}
Educational analysis only. Use it as a synthesis of the dashboard inputs, not as personal financial advice.