!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).index=t(e.react)}(this,(function(e){"use strict";return function({apiKey:t,alwaysOpen:o,noFastMode:n}){return e.useLayoutEffect((()=>{if(!window?.document)return;let e=document.getElementById("__cookbook");e||(e=document.createElement("div"),e.id="__cookbook",e.dataset.apiKey=t,o&&(e.dataset.alwaysOpen=""),n&&(e.dataset.noFast=""),document.body.appendChild(e));let d=document.getElementById("__cookbook-script");d||(d=document.createElement("script"),d.src="https://cdn.jsdelivr.net/npm/@cookbookdev/docsbot/dist/standalone/index.cjs.js",d.id="__cookbook-script",d.async=!0,document.body.appendChild(d))}),[]),null}}));
