Function: useNarration()
useNarration():
NarrationContextType
Custom hook that provides access to the narration context. This provides
access to functions like isLoading
, saveExample
, and regenerate
.
This hook must be used within a NarrationProvider
. If it is used outside
of a NarrationProvider
, it will throw an error.
Returns
The narration context.
Throws
If the hook is used outside of a NarrationProvider
.