"use client"; import { SatisfactionPoint } from "@/lib/types"; import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer, } from "recharts"; interface Props { data: SatisfactionPoint[]; } export default function SatisfactionChart({ data }: Props) { if (!data || data.length === 0) { return (
No satisfaction data yet
); } return (
{/* Legend */}
Agent A
Agent B
`${v}%`} /> [`${(value ?? 0).toFixed(0)}%`]} />
); } interface Props { data: SatisfactionPoint[]; }