"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.SegmentedControlContext = exports.segmentedControlPropTypes = void 0;

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

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

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var segmentedControlPropTypes = {
  value: _propTypes["default"].oneOfType([_propTypes["default"].number, _propTypes["default"].string]).isRequired,
  onChange: _propTypes["default"].func.isRequired,
  children: _propTypes["default"].arrayOf(_propTypes["default"].node).isRequired
};
exports.segmentedControlPropTypes = segmentedControlPropTypes;

var SegmentedControlContext = _react["default"].createContext({
  selectedValue: 0,
  onItemClick: function onItemClick() {}
});

exports.SegmentedControlContext = SegmentedControlContext;