"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _propTypes = _interopRequireDefault(require("prop-types"));

var _react = _interopRequireDefault(require("react"));

var Purpose = function Purpose(props) {
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _react["default"].Children.map(props.children, function (child) {
    return /*#__PURE__*/_react["default"].cloneElement(child, {
      'data-pie-purpose': props.purpose
    });
  }));
};

Purpose.propTypes = {
  children: _propTypes["default"].node,
  purpose: _propTypes["default"].string
};
var _default = Purpose;
exports["default"] = _default;
//# sourceMappingURL=purpose.js.map