import React from 'react';
import { FormattedMessage } from 'react-intl';
import messages from './messages';

export const DEEP_LINK = 'DEEP_LINK';
export const EXTERNAL_URL = 'EXTERNAL_URL';
export const WEBSITE = 'WEBSITE';

export const CTA_OPTIONS = [
  {
    key: DEEP_LINK,
    value: DEEP_LINK,
    label: <FormattedMessage {...messages.ctaLinkTypeDeep} />,
    tooltipLabel: <FormattedMessage {...messages.ctaOptionDisabledTooltipDeepLink} />,
  },
  {
    key: EXTERNAL_URL,
    value: EXTERNAL_URL,
    label: <FormattedMessage {...messages.ctaLinkTypeExternal} />,
    tooltipLabel: <FormattedMessage {...messages.ctaOptionDisabledTooltipExternalLink} />,
  },
];

export const BTN_MAX_LENGTH = 20;
export const URL_MAX_LENGTH = 2000;
