import { useTheme } from "next-themes" import { Bar, BarChart, Line, LineChart, ResponsiveContainer } from "recharts" import { useConfig } from "@/hooks/use-config" import { Card, CardContent, CardHeader, CardTitle, } from "@/registry/default/ui/card" import { themes } from "@/registry/themes" const data = [ { revenue: 10400, subscription: 240, }, { revenue: 14405, subscription: 300, }, { revenue: 9400, subscription: 200, }, { revenue: 8200, subscription: 278, }, { revenue: 7000, subscription: 189, }, { revenue: 9600, subscription: 239, }, { revenue: 11244, subscription: 278, }, { revenue: 26475, subscription: 189, }, ] export function CardsStats() { const { theme: mode } = useTheme() const [config] = useConfig() const theme = themes.find((theme) => theme.name === config.theme) return (
Total Revenue
$15,231.89

+20.1% from last month

Subscriptions
+2350

+180.1% from last month

) }