"use client"
import { cn } from "@/lib/utils"
import { ChartCodeViewer } from "@/components/chart-code-viewer"
import { Separator } from "@/registry/new-york/ui/separator"
import "@/styles/mdx.css"
import {
AreaChart,
BarChartBig,
Hexagon,
LineChart,
MousePointer2,
PieChart,
Radar,
} from "lucide-react"
import { ChartCopyButton } from "@/components/chart-copy-button"
import { Chart } from "@/components/chart-display"
export function ChartToolbar({
chart,
className,
children,
}: {
chart: Chart
} & React.ComponentProps<"div">) {
return (
)
}
function ChartTitle({ chart }: { chart: Chart }) {
const { categories } = chart
if (!categories?.length) {
return null
}
if (categories.includes("charts-line")) {
return (
<>
Chart
>
)
}
if (categories.includes("charts-bar")) {
return (
<>
Chart
>
)
}
if (categories.includes("charts-pie")) {
return (
<>
Chart
>
)
}
if (categories.includes("charts-area")) {
return (
<>
Chart
>
)
}
if (categories.includes("charts-radar")) {
return (
<>
Chart
>
)
}
if (categories.includes("charts-radial")) {
return (
<>
Chart
>
)
}
if (categories.includes("charts-tooltip")) {
return (
<>
Tooltip
>
)
}
return categories[0]
}