MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / useViewMode

Function useViewMode

packages/studio/src/contexts/ViewModeContext.tsx:75–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73const ViewModeContext = createContext<ViewModeValue | null>(null);
74
75export function useViewMode(): ViewModeValue {
76 const ctx = useContext(ViewModeContext);
77 if (!ctx) throw new Error("useViewMode must be used within ViewModeProvider");
78 return ctx;
79}
80
81export function ViewModeProvider({
82 value,

Callers 2

ViewModeToggleFunction · 0.90
StoryboardFrameFocusFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected