UNPKG

@adyen/adyen-platform-experience-web

Version:

![Platform Experience header](https://github.com/Adyen/adyen-platform-experience-web/assets/7926613/18094965-9e01-450e-8dc9-ea84e6b22c2b)

12 lines (11 loc) 355 B
import { useContext as o } from "../../../../external/.pnpm/preact@10.28.2/node_modules/preact/hooks/dist/hooks.module.js"; import { AnalyticsContext as n } from "./AnalyticsContext.js"; const s = () => { const t = o(n); if (!t) throw new Error("Cannot use AnalyticsContext without <AnalyticsProvider>"); return t; }; export { s as default };