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 site from 'services/api/site'; 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 , , , , ]; export default class ContactForm extends Component { static displayName = 'ContactForm'; static propTypes = { onClose: PropTypes.func.isRequired }; form = new FormModel(); render() { const {onClose} = this.props; const {form} = this; return (