* refactor: move timezone-select, settings, and insights components from packages/features to apps/web/modules Co-Authored-By: benny@cal.com <sldisek783@gmail.com> * fix * fix * fix * wip * wip * wip * wip * wip * wip * wip --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
11 lines
292 B
TypeScript
11 lines
292 B
TypeScript
import { useContext } from "react";
|
|
|
|
import { WebPushContext } from "../components/WebPushContext";
|
|
|
|
export function useWebPush() {
|
|
const context = useContext(WebPushContext);
|
|
if (!context) {
|
|
throw new Error("useWebPush must be used within a WebPushProvider");
|
|
}
|
|
return context;
|
|
} |