import {
  EqCutIcon,
  EqHighPassIcon,
  EqHighShelfIcon,
  EqLowPassIcon,
  EqLowShelfIcon,
  EqPeakingIcon,
} from '@/icons';

import { EQBandType } from '../../studio/types';

export const SAMPLE_RATE = 44100;
export const MIN_FREQ = 20;
export const MAX_FREQ = 20000;
export const MIN_GAIN = -16;
export const MAX_GAIN = 16;
export const MIN_Q = 0.15;
export const MAX_Q = 6;

// Q adjustment sensitivity multiplier for mouse movement
export const Q_ADJUSTMENT_SENSITIVITY = 0.6;

// Map of EQ band types to their icons
export const EQ_TYPE_ICONS: Record<EQBandType, React.ReactNode> = {
  highpass: <EqHighPassIcon className='h-4 w-4' />,
  lowshelf: <EqLowShelfIcon className='h-4 w-4' />,
  peaking: <EqPeakingIcon className='h-4 w-4' />,
  notch: <EqCutIcon className='h-4 w-4' />,
  highshelf: <EqHighShelfIcon className='h-4 w-4' />,
  lowpass: <EqLowPassIcon className='h-4 w-4' />,
};
