import React from 'react';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
export const SUCCESS_ALERT = 'success';
export const WARNING_ALERT = 'warning';
export const ERROR_ALERT = 'error';
export const SUCCESS = 'SUCCESS';
export const REQUEST = 'REQUEST';
export const ERROR = 'ERROR';
export const STRING = 'STRING';
export const NUMBER = 'NUMBER';
export const DATE = 'DATE';

export const TAG = 'TAG';
export const EMBEDDED = 'embedded';
export const DEFAULT = 'default';
export const LIBRARY = 'library';
export const FULL = 'full';
export const ALL = 'all';
export const OUTBOUND = 'outbound';

const prefix = 'app/v2Containers/Zalo';
export const ZALO_TEMPLATE_INFO_REQUEST = `${prefix}/ZALO_TEMPLATE_INFO_REQUEST`;
export const ZALO_TEMPLATE_INFO_SUCCESS = `${prefix}/ZALO_TEMPLATE_INFO_SUCCESS`;
export const ZALO_TEMPLATE_INFO_ERROR = `${prefix}/ZALO_TEMPLATE_INFO_ERROR`;
export const ZALO_TEMPLATE_PREVIEW_RESET = `${prefix}/ZALO_TEMPLATE_PREVIEW_RESET`;
export const ZALO_TEMPLATE_PREVIEW_INFO = `${prefix}/ZALO_TEMPLATE_PREVIEW_INFO`;
export const ZALO_TEMPLATE_INFO_RESET = `${prefix}/ZALO_TEMPLATE_INFO_RESET`;

export const ZALO_STATUSES = {
  PENDING_REVIEW: 'PENDING_REVIEW',
  REJECT: 'REJECT',
  ENABLE: 'ENABLE',
  DISABLE: 'DISABLE',
};

export const ZALO_STATUS_OPTIONS = [
  {
    key: 'enable',
    value: ZALO_STATUSES.ENABLE,
    label: <FormattedMessage {...messages.ENABLE_STATUS} />,
  },
  {
    key: 'reject',
    value: ZALO_STATUSES.REJECT,
    label: <FormattedMessage {...messages.REJECT_STATUS} />,
  },
  {
    key: 'disable',
    value: ZALO_STATUSES.DISABLE,
    label: <FormattedMessage {...messages.DISABLE_STATUS} />,
  },
  {
    key: 'reviewPending',
    value: ZALO_STATUSES.PENDING_REVIEW,
    label: <FormattedMessage {...messages.PENDING_REVIEW_STATUS} />,
  },
];
