import revenueChartController from '@/app/dashboard/components/server/revenue-chart/revenue-chart-controller'; import { CalendarIcon } from '@heroicons/react/24/outline'; export default async function RevenueChart() { const { chartHeight, revenue, topLabel, yAxisLabels } = await revenueChartController() if (!revenue || revenue.length === 0) { return

No data available.

; } return (

Recent Revenue

{yAxisLabels.map((label) => (

{label}

))}
{revenue.map((month) => (

{month.month}

))}

Last 12 months

); }