@ai-growth/nextjs
Version:
Seamlessly integrate Sanity CMS with Next.js applications for automated blog routing and rendering
32 lines • 1.14 kB
TypeScript
import React from 'react';
import type { DefaultTemplateProps } from '../types';
/**
* DefaultTemplate component for rendering CMS content
*
* This is the main template component that provides a default layout
* for rendering CMS content with header, body, and author sections.
*/
export declare const DefaultTemplate: React.FC<DefaultTemplateProps>;
/**
* Error Boundary wrapper for the DefaultTemplate
*/
export declare class DefaultTemplateErrorBoundary extends React.Component<{
children: React.ReactNode;
fallback?: React.ReactNode;
}, {
hasError: boolean;
error?: Error;
}> {
constructor(props: {
children: React.ReactNode;
fallback?: React.ReactNode;
});
static getDerivedStateFromError(error: Error): {
hasError: boolean;
error: Error;
};
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<React.AwaitedReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
}
export default DefaultTemplate;
//# sourceMappingURL=DefaultTemplate.d.ts.map