import {windowDimensions} from '@shared/constants';

const NUMERIC_SMALL = 1000;
export const NUMERIC_LARGE = 300000;
const WINDOW_HEIGHT_MEDIUM = windowDimensions.height * 0.5;
export const WINDOW_HEIGHT_LARGE = windowDimensions.height * 0.9;

const prom = (a: number, b: number) => (a + b) / 2;

// Android
export const NUMERIC_PROM = prom(NUMERIC_SMALL, NUMERIC_LARGE);
export const WINDOW_HEIGHT_PROM = prom(
  WINDOW_HEIGHT_MEDIUM,
  WINDOW_HEIGHT_LARGE,
);
export const NUMERIC_WINDOW_HEIGHT_PROM = prom(
  NUMERIC_SMALL,
  WINDOW_HEIGHT_LARGE,
);
export const WINDOW_HEIGHT_NUMERIC_PROM = prom(
  WINDOW_HEIGHT_MEDIUM,
  NUMERIC_LARGE,
);

export const NUMERIC_SNAP_POINTS = [NUMERIC_SMALL, NUMERIC_LARGE];
export const RATIO_SNAP_POINTS = ['50%', '90%'];
export const NUMERIC_RATIO_SNAP_POINTS = [NUMERIC_SMALL, '90%'];
export const RATIO_NUMERIC_SNAP_POINTS = ['50%', NUMERIC_LARGE];
