@uimkit/uikit-react
Version:
<img style="width:64px" src="https://mgmt.uimkit.chat/media/img/avatar.png"/>
17 lines (12 loc) • 573 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
function usePluginsElement(props) {
var plugins = props.plugins, showNumber = props.showNumber;
return React.useMemo(function () { return ({
showPicker: plugins === null || plugins === void 0 ? void 0 : plugins.slice(0, showNumber),
elements: plugins === null || plugins === void 0 ? void 0 : plugins.slice(showNumber),
}); }, [plugins]);
}
exports.usePluginsElement = usePluginsElement;
//# sourceMappingURL=usePluginsElement.js.map