UNPKG

@jss-rule-engine/chat

Version:

15 lines (14 loc) 695 B
import useSitecoreChatPlugin from "./useSitecoreChatPlugin"; /** * Factory that prepares the plugin hook to be consumed by the core library. * * @param pluginConfig configurations for the plugin */ var SitecoreChatPluginFactory = function (pluginConfig) { // any custom logic to be ran before hook initialization can be done here // prepares and returns the plugin hook without calling it, because the // initialization of the hook should be handled by the core library itself var usePreparedSitecoreChatPlugin = function () { return useSitecoreChatPlugin(pluginConfig); }; return usePreparedSitecoreChatPlugin; }; export default SitecoreChatPluginFactory;