import { authenticateWithPasskey as e, isWebAuthnSupported as t, registerPasskey as n } from "../../passkey/index.js";
import { useCallback as r, useEffect as i, useState as a } from "react";
//#region src/react/hooks/usePasskey.ts
function o() {
	let [o, s] = a(!1);
	return i(() => {
		s(t());
	}, []), {
		isSupported: o,
		register: r((e) => n(e), []),
		authenticate: r((t) => e(t), [])
	};
}
//#endregion
export { o as usePasskey };

//# sourceMappingURL=usePasskey.js.map