import React from 'react';
import { Raiser } from '../Raiser';
import { Button, Variants } from '../forms/Button';
import setDisplayName from 'recompose/setDisplayName';
import { Container, Row, Col } from 'react-bootstrap';

var AddPure = function AddPure(_ref) {
  var title = _ref.title,
      onAdd = _ref.onAdd,
      onCount = _ref.onCount;
  return React.createElement(Container, null, React.createElement(Row, null, React.createElement(Col, null, React.createElement(Raiser, {
    onCount: onCount
  })), React.createElement(Col, null, React.createElement(Button, {
    variant: Variants.PRIMARY,
    onClick: onAdd
  }, title))));
};

export var AddComponent = setDisplayName('AddComponent')(AddPure);