UNPKG

@uimkit/uikit-react

Version:

<img style="width:64px" src="https://mgmt.uimkit.chat/media/img/avatar.png"/>

19 lines (16 loc) 715 B
import { __rest, __assign } from 'tslib'; import React__default from 'react'; import '../../types/models.js'; import '../../types/events.js'; import './UIMomentContext.js'; import { MomentProvider } from './hooks/MomentContext.js'; import { UIMomentDefault } from './UIMomentDefault.js'; var UIMoment = function (props) { var propMoment = props.Moment, rest = __rest(props, ["Moment"]); var MomentUIComponent = propMoment || UIMomentDefault; var momentContextValue = __assign({}, rest); return (React__default.createElement(MomentProvider, { value: momentContextValue }, React__default.createElement(MomentUIComponent, null))); }; export { UIMoment }; //# sourceMappingURL=UIMoment.js.map