!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((()=>{const e=window?.document?.getElementById?.("__cookbook");if(!window?.document||e)return;const d=window.document.createElement("div");d.id="__cookbook",d.setAttribute("data-api-key",t),o&&d.setAttribute("data-always-open",""),n&&d.setAttribute("data-no-fast",""),window.document.body.appendChild(d);const i=window.document.createElement("script");return i.src="https://cdn.jsdelivr.net/npm/@cookbookdev/docsbot/dist/standalone/index.cjs.js",i.defer=!0,document.head.appendChild(i),()=>{window.document.body.removeChild(d),window.document.head.removeChild(i)}}),[]),null}}));
