const isEmpty = (array: any[]): boolean => array.length === 0;

const not =
  (predicate: (arg: Array<any>) => boolean) =>
  (arg: Array<any>): boolean =>
    !predicate(arg);

const evaluateStylesBrand = (): string => {
  const stylesBrand: string | undefined = process.env.TARGET;

  switch (stylesBrand) {
    case 'one': {
      return 'facts';
    }
    case 'two': {
      return 'facts-b';
    }
    default: {
      return 'facts';
    }
  }
};

export { isEmpty, not, evaluateStylesBrand };
