import { ButtonRadio } from './button-radio'; import { DepthChartContainer } from '@vegaprotocol/depth-chart'; import { TradingChartContainer } from '@vegaprotocol/chart'; import { useState } from 'react'; type ChartType = 'depth' | 'trading'; interface ChartContainerProps { marketId: string; } export const ChartContainer = ({ marketId }: ChartContainerProps) => { const [chartType, setChartType] = useState('trading'); return (
{ setChartType(value); }} />
{chartType === 'trading' ? ( ) : ( )}
); };