import React from 'react';
export var Select = function Select(_ref) {
  var label = _ref.label,
      id = _ref.id,
      options = _ref.options,
      value = _ref.value,
      onChange = _ref.onChange,
      placeholder = _ref.placeholder;
  return React.createElement(React.Fragment, null, React.createElement("label", {
    htmlFor: id
  }, label), React.createElement("select", {
    value: value,
    className: "custom-select form-control",
    id: id,
    onChange: onChange
  }, React.createElement("option", {
    value: "",
    disabled: true
  }, placeholder), options.map(function (option) {
    return React.createElement("option", {
      key: option.id,
      value: option.value
    }, option.title);
  })));
};