react-code-dataset / next.js /packages /next /src /shared /lib /head-manager-context.shared-runtime.ts
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
import React from 'react'
export const HeadManagerContext: React.Context<{
updateHead?: (state: any) => void
mountedInstances?: any
updateScripts?: (state: any) => void
scripts?: any
getIsSsr?: () => boolean
// Used in app directory, to render script tags as server components.
appDir?: boolean
nonce?: string
}> = React.createContext({})
if (process.env.NODE_ENV !== 'production') {
HeadManagerContext.displayName = 'HeadManagerContext'
}