import {defineMessages, FormattedMessage, intlShape, injectIntl} from 'react-intl'; import PropTypes from 'prop-types'; import React from 'react'; import Box from '../box/box.jsx'; import Modal from '../../containers/modal.jsx'; import FileInput from './file-input.jsx'; import styles from './custom-extension-modal.css'; import FancyCheckbox from '../tw-fancy-checkbox/checkbox.jsx'; import {APP_NAME} from '../../lib/brand'; const messages = defineMessages({ title: { defaultMessage: 'Load Custom Extension', description: 'Title of custom extension menu', id: 'tw.customExtensionModal.title' } }); const CustomExtensionModal = props => (
{props.type === 'url' ? (

) : props.type === 'file' ? (

) : (