import { useTranslation } from '../hooks/use-translation';
// Have to stay identical to MESSAGE_TYPES from Message component
// or additional adapters should be introduced
export const VALIDATION_RULE_TYPES = {
  ERROR: 'error',
  SUCCESS: 'success',
  WARNING: 'warning',
  INFO: 'info',
  SUCCESS_INFO: 'success-info',
  IN_PROGRESS: 'in-progress',
  EXPIRED: 'expired',
  DISABLED: 'disabled',
  THINKING: 'thinking'
};
export const MESSAGE_DISPLAY_LOCATION = {
  INLINE: 'inline',
  SUMMARY: 'summary'
};
export const ICON_POSITION = {
  LEFT: 'left',
  RIGHT: 'right',
  CENTER_RIGHT: 'center-right'
};
export const useDefaultValidationValues = () => {
  const {
    t
  } = useTranslation();
  return {
    [VALIDATION_RULE_TYPES.ERROR]: t('Invalid field'),
    [VALIDATION_RULE_TYPES.SUCCESS]: t('Validated')
  };
};
export const INPUT_TYPES = {
  PASSWORD: 'password',
  TEXT: 'text',
  NUMBER: 'number',
  TIME: 'time'
};