import React from 'react'; import type { Timeframe } from '../types'; import TimezonePicker from './TimezonePicker'; interface BottomBarProps { timeframe: Timeframe; logScale: boolean; percentScale: boolean; showGrid: boolean; lastTime: number; displayTimezone: string; onTimezoneChange: (tz: string) => void; onTimeframe: (t: Timeframe) => void; onLogScale: () => void; onPercentScale: () => void; onAutoScale: () => void; onFitContent: () => void; onToggleGrid: () => void; } const PERIODS: { label: string; tf: Timeframe }[] = [ { label: '1M', tf: '1M' }, { label: '1W', tf: '1W' }, { label: '1D', tf: '1D' }, { label: '4h', tf: '4h' }, { label: '1h', tf: '1h' }, { label: '30m',tf: '30m' }, { label: '15m',tf: '15m' }, { label: '10m',tf: '10m' }, { label: '5m', tf: '5m' }, { label: '3m', tf: '3m' }, { label: '1m', tf: '1m' }, ]; const IcCalendar = () => ( ); const IcGrid = () => ( ); const BottomBar: React.FC = ({ timeframe, logScale, percentScale, showGrid, lastTime, displayTimezone, onTimezoneChange, onTimeframe, onLogScale, onPercentScale, onAutoScale, onFitContent, onToggleGrid, }) => { return ( {PERIODS.map(p => ( onTimeframe(p.tf)} >{p.label} ))} % log auto ); }; export default BottomBar;