import { BarChart, Bar, YAxis, Tooltip, ResponsiveContainer } from 'recharts'; import type { OHLCVDataPoint } from '@/lib/types'; import { getChartColors } from '../utils/chart-colors'; import { formatCompactCurrency } from '@/lib/format'; type VolumeIndicatorProps = { data: OHLCVDataPoint[]; height?: number; formatters?: { volume?: (value: number) => string; }; }; export function VolumeIndicator({ data, height = 80, formatters }: VolumeIndicatorProps) { const colors = getChartColors(); if (data.length === 0) return null; const formatVolume = formatters?.volume || formatCompactCurrency; return (