Files
discord-decomp/modules/in_app_notifications/native/InAppNotificationContext.tsx
T
2026-11-01 12:12:55 +02:00

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;
}