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/windowed-modal.jsx'; import styles from './slider-prompt.css'; const messages = defineMessages({ minValue: { defaultMessage: 'Minimum value', description: 'Label of slider modal', id: 'gui.sliderModal.min' }, maxValue: { defaultMessage: 'Maximum value', description: 'Label of slider modal', id: 'gui.sliderModal.max' }, title: { defaultMessage: 'Change slider range', description: 'Title of slider modal', id: 'gui.sliderModal.title' } }); const SliderPromptComponent = props => ( {props.intl.formatMessage(messages.minValue)} {props.intl.formatMessage(messages.maxValue)} ); SliderPromptComponent.propTypes = { intl: intlShape, maxValue: PropTypes.string, minValue: PropTypes.string, onCancel: PropTypes.func.isRequired, onChangeMax: PropTypes.func.isRequired, onChangeMin: PropTypes.func.isRequired, onKeyPress: PropTypes.func.isRequired, onOk: PropTypes.func.isRequired }; export default injectIntl(SliderPromptComponent);