import type { Display1D, Display2D } from '@zakodium/nmrium-core'; interface ColorIndicator1DProps { display: Display1D; } interface ColorIndicator2DProps { display: Display2D; } function ColorIndicator1D({ display }: ColorIndicator1DProps) { return (
); } function ColorIndicator2D({ display }: ColorIndicator2DProps) { return ( ); } interface ColorIndicatorProps { display: Display1D | Display2D; dimension: number; } export function ColorIndicator(props: ColorIndicatorProps) { const { display, dimension } = props; if (dimension === 2) { return ; } return ; }