UNPKG

@dotcms/react

Version:

Official React Components library to render a dotCMS page.

14 lines (13 loc) 487 B
import { DotcmsPageProps } from '../components/DotcmsLayout/DotcmsLayout'; import { DotCMSPageContext } from '../models'; /** * Custom Hook to handle the DotCMS editor interaction with the page. * * @category Hooks * @param {DotcmsPageProps} props { * pageContext, * config, * } * @returns {DotCMSPageContext} The context for a DotCMS page provided by the editor. */ export declare const useDotcmsEditor: ({ pageContext, config }: DotcmsPageProps) => DotCMSPageContext;