import lodash from 'lodash';
import {
  capitalize,
  formatContactName,
  formatDate,
  formatLocation,
  getDuration,
  getFirstTimestamp,
  getLastTimestamp,
  getTimestampsGroups,
  getTotalDuration,
  secondsToTime,
  toEUR,
  toMXN,
  toUSD,
} from 'src/helpers/formatters';
import { getProductFromCaptacion, getProductPropValue } from 'src/pages/captaciones/consts';

export const contextFunctions = {
  ...lodash,
  formatDate,
  secondsToTime,
  getProductPropValue,
  capitalize,
  toEUR,
  toUSD,
  toMXN,
  getProductFromCaptacion,
  formatLocation,
  formatContactName,
  getFirstTimestamp,
  getLastTimestamp,
  getTimestampsGroups,
  getDuration,
  getTotalDuration,
};
