import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer, Area, AreaChart, Legend, } from 'recharts'; import type { SentimentTrend } from '../../types'; interface SentimentChartProps { data: SentimentTrend[]; height?: number; } export function SentimentTrendChart({ data, height = 300 }: SentimentChartProps) { if (!data.length) { return (
No trend data available
); } return ( [value.toFixed(3), '']} /> ); } interface SentimentDistributionProps { positive: number; negative: number; neutral: number; } export function SentimentDistribution({ positive, negative, neutral }: SentimentDistributionProps) { const total = positive + negative + neutral || 1; return (
); }