add supporer key program

This commit is contained in:
miloschwartz
2025-03-20 22:16:02 -04:00
parent 1c2ba4076a
commit cdc415079c
17 changed files with 908 additions and 74 deletions

View File

@@ -0,0 +1,12 @@
import SupporterStatusContext from "@app/contexts/supporterStatusContext";
import { useContext } from "react";
export function useSupporterStatusContext() {
const context = useContext(SupporterStatusContext);
if (context === undefined) {
throw new Error(
"useSupporterStatusContext must be used within an SupporterStatusProvider"
);
}
return context;
}