"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Amenity = void 0;
var _ui = require("@mirai/ui");
var _propTypes = _interopRequireDefault(require("prop-types"));
var _react = _interopRequireDefault(require("react"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const Amenity = _ref => {
  let {
    checked,
    id,
    label,
    onChange = () => {}
  } = _ref;
  return /*#__PURE__*/_react.default.createElement(_ui.InputOption, {
    checked: checked,
    label: label,
    name: "amenity:".concat(id),
    onChange: nextValue => onChange(id, nextValue)
  });
};
exports.Amenity = Amenity;
Amenity.displayName = 'Mirai:Core:Rates:Filters.Amenity';
Amenity.propTypes = {
  checked: _propTypes.default.bool,
  id: _propTypes.default.number,
  label: _propTypes.default.string,
  onChange: _propTypes.default.func
};
//# sourceMappingURL=Filters.Amenity.js.map