import { useSyncExternalStore as Cn } from '../../../../../../node_modules/preact/compat/dist/compat.module.mjs';
import { useStytch } from '../GlobalContextProvider.mjs';

// useStytchMember is a very lightweight copy-pasta of the hook from stytch-react
// If we end up calling this in several places, consider hoisting to global context
const useStytchMember = ()=>{
    const stytch = useStytch();
    return Cn(stytch.onStateChange, ()=>stytch.self.getSync());
};

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