12 lines
418 B
TypeScript
12 lines
418 B
TypeScript
// Metro module 10302 (f10303).
|
|
import { createContext, useContext } from "react";
|
|
const context = createContext(void 0);
|
|
export { context as InAppNotificationContext };
|
|
export function useInAppNotificationContext() {
|
|
const context2 = useContext(context);
|
|
if (context2 == null) {
|
|
throw new Error("useInAppNotificationContext must be used within provider of InAppNotificationContext");
|
|
}
|
|
return context2;
|
|
}
|