// @flow

const DEFAULT_AUTONUMERIC_CONFIG = {
  alwaysAllowDecimalCharacter: true,
  unformatOnHover: false, // not currently working: https://github.com/autoNumeric/autoNumeric/issues/598
  minimumValue: 0,
  modifyValueOnWheel: false,
  emptyInputBehavior: 'press',
};

export const AUTONUMERIC_CONFIG_BY_CURRENCY_CODE = {
  GBP: {
    ...DEFAULT_AUTONUMERIC_CONFIG,
    currencySymbol: '£',
  },
  CAD: {
    // TODO: Handle locale-based formatting of numbers/currencies
    ...DEFAULT_AUTONUMERIC_CONFIG,
    currencySymbol: '$',
  },
  USD: {
    ...DEFAULT_AUTONUMERIC_CONFIG,
    currencySymbol: '$',
  },
};
