amis-rpc-design/node_modules/rc-motion/es/context.js
2023-10-07 19:42:30 +08:00

11 lines
442 B
JavaScript

import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
var _excluded = ["children"];
import * as React from 'react';
export var Context = /*#__PURE__*/React.createContext({});
export default function MotionProvider(_ref) {
var children = _ref.children,
props = _objectWithoutProperties(_ref, _excluded);
return /*#__PURE__*/React.createElement(Context.Provider, {
value: props
}, children);
}