"use client"; import { useTheme } from "next-themes"; import { colors } from "@/lib/colors"; import { useConfig } from "@/hooks/use-config"; import { CartesianGrid, XAxis, YAxis, ResponsiveContainer, BarChart, Bar, Tooltip, LabelList, } from "recharts"; import { data } from "./data"; import CustomTooltip from "./custom-tooltip"; const renderCustomizedLabel = (props: any) => { const { x, y, width, height, value } = props; const radius = 10; return ( {value.split(" ")[1]} ); }; const BarWithMinHeight = ({ height = 300 }) => { const { theme: mode } = useTheme(); return ( } /> ); }; export default BarWithMinHeight;