UNPKG

@dotcms/react

Version:

Official React Components library to render a dotCMS page.

10 lines (9 loc) 432 B
import { DotCMSPageContext } from '../models'; /** * `useDotcmsPageContext` is a custom React hook that provides access to the `PageProviderContext`. * It takes no parameters and returns the context value or `null` if it's not available. * * @category Hooks * @returns {DotCMSPageContext | null} - The context value or `null` if it's not available. */ export declare function useDotcmsPageContext(): DotCMSPageContext | null;