You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throw new Error(`Invalid date "${date}". Provide date in "YYYY/M/D", "YYYY/M/D H:m", "YYYY-MM-DD", "[YYYY-MM-DD]T[HH:mm]" or "[YYYY-MM-DD]T[HH:mm:ss.SSS]Z" format.`)
}
return (
<BlogContext.Provider value={{ config, opts }}>
{children}
</BlogContext.Provider>
)
}
export const useBlogContext = () => {
const value = useContext(BlogContext)
if (!value) {
throw new Error('useBlogContext must be used within a BlogProvider')