"use client"; import { cn } from "@/lib/utils"; import { type CandlestickChartProps, CandlestickContext, useCandlestickModel, } from "./candlestick-chart/context"; import { CandlestickChartLegend } from "./candlestick-chart/legend"; import { CandlestickChartPlot } from "./candlestick-chart/plot"; /** * OHLC candles with volume, a last-price line, and a crosshair readout. * * ```tsx * * * * * ``` */ export function CandlestickChart({ className, children, ...props }: CandlestickChartProps) { const model = useCandlestickModel(props); return (
{children ?? (
)}
); } export { type Candle, type CandlestickChartProps, useCandlestickChart, } from "./candlestick-chart/context"; export { CandlestickChartLegend, type CandlestickChartLegendProps, } from "./candlestick-chart/legend"; export { CandlestickChartPlot, type CandlestickChartPlotProps, } from "./candlestick-chart/plot";