import '../../../../../node_modules/preact/compat/dist/compat.module.mjs';
import { useB2BInternals } from './useB2BInternals.mjs';
import { useState as h, useEffect as p } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';

const useBootstrap = ()=>{
    const b2bInternals = useB2BInternals();
    const [bootstrap, setBootstrap] = h(b2bInternals.bootstrap.getSync());
    p(()=>{
        b2bInternals.bootstrap.getAsync().then((value)=>{
            setBootstrap(value);
        });
    }, [
        b2bInternals.bootstrap
    ]);
    return bootstrap;
};

export { useBootstrap };
//# sourceMappingURL=useBootstrap.mjs.map
