"use client"; import { cn } from "@/lib/utils"; import { BumpChartContext, useBumpChartModel, type BumpChartProps } from "./bump-chart/context"; import { BumpChartLegend } from "./bump-chart/legend"; import { BumpChartPlot } from "./bump-chart/plot"; /** Compose the plot and legend, or supply children for your own arrangement. */ export function BumpChart({ children, className, ...props }: BumpChartProps) { const model = useBumpChartModel(props); return (
{children === undefined ? ( <> ) : ( children )}
); } export { BumpChartLegend } from "./bump-chart/legend"; export { BumpChartPlot } from "./bump-chart/plot"; export { useBumpChart } from "./bump-chart/context"; export type { BumpChartProps } from "./bump-chart/context"; export type BumpChartSeries = import("./bump-chart/model").BumpSeries;