import React, { Component, PropTypes } from 'react'; import classNames from 'classnames'; import { FormattedMessage as Message } from 'react-intl'; import { Input, TextArea, Button, Form, FormModel, Dropdown } from 'components/ui/form'; import feedback from 'services/api/feedback'; import icons from 'components/ui/icons.scss'; import popupStyles from 'components/ui/popup/popup.scss'; import styles from './contactForm.scss'; import messages from './contactForm.intl.json'; const CONTACT_CATEGORIES = [ // TODO: сюда позже проставить реальные id категорий с backend , , , , ]; class ContactForm extends Component { static displayName = 'ContactForm'; static propTypes = { onClose: PropTypes.func.isRequired, user: PropTypes.shape({ email: PropTypes.string }).isRequired }; form = new FormModel(); render() { const {onClose, user} = this.props; const {form} = this; return (