import {CHATS_SPACING} from '@modules/chats/utils';
import {windowDimensions} from '@shared/constants';
import {SPACING} from '@shared/theme';

export const BAR_WIDTH = 2;
export const BAR_GAP = 2;
export const BAR_STEP = BAR_WIDTH + BAR_GAP;
export const CONTAINER_HEIGHT = CHATS_SPACING.inputMinHeight;
export const CONTAINER_WIDTH =
  windowDimensions.width -
  40 -
  40 -
  SPACING['x0.5'] * 2 -
  SPACING.x1 * 2 -
  SPACING.x2; // left and right buttons, gap, padding

export const MIN_BAR_HEIGHT = 1;
export const MAX_BAR_HEIGHT = CONTAINER_HEIGHT - 8;

export const BAR_RX = 1;

export const WAVEFORM_BARS_COUNT = Math.floor(CONTAINER_WIDTH / BAR_STEP);
