/* VolumeTrend — area chart of tickets opened per day for the last 30 days. * * Single series, Wulf Blue fill at 20%. No grid, minimal axes — the * shape is what matters. Tooltip carries the exact count + date. */ 'use client'; import { Area, AreaChart, ResponsiveContainer, Tooltip, XAxis, YAxis, } from 'recharts'; interface VolumePoint { date: string; count: number; } interface VolumeTrendProps { data: VolumePoint[]; height?: number; } function fmtDate(iso: string) { return new Date(iso).toLocaleDateString(undefined, { month: 'short', day: 'numeric' }); } export function VolumeTrend({ data, height = 180 }: VolumeTrendProps) { return ( fmtDate(String(value))} formatter={(value) => [value ?? 0, 'opened']} /> ); }