"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 _lodash = require("lodash");

var BDesignTheme = function BDesignTheme(props) {
  var _props$theme = props.theme,
      theme = _props$theme === void 0 ? 'light' : _props$theme,
      _props$children = props.children,
      children = _props$children === void 0 ? _lodash.noop : _props$children;
  return children(theme);
};

BDesignTheme.propTypes = {
  children: _propTypes.default.func.isRequired,
  theme: _propTypes.default.oneOf(['dark', 'light'])
};
var _default = BDesignTheme;
exports.default = _default;