"use client"; import { BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer, Cell, } from "recharts"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; interface BarChartProps { data: Array<{ name: string; value: number; [key: string]: any }>; title?: string; dataKey?: string; colors?: string[]; height?: number; className?: string; } const CustomTooltip = ({ active, payload, label }: any) => { if (active && payload && payload.length) { return (
{label}
{payload[0].value} {" "} sessions