import React from 'react'; import { Eye, Star } from 'lucide-react'; import { Business } from '../../types'; import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer, BarChart, Bar } from 'recharts'; const MousePointerClick = ({className}: {className?:string}) => ( ); interface DayStat { date: string; views: number; clicks: number; } const CustomTooltip = ({ active, payload, label, color }: any) => { if (active && payload && payload.length) { return (
{label}
{payload[0].value} {payload[0].name === 'views' ? 'Vues' : 'Clics'}