UNPKG

@etsoo/website

Version:

ETSOO CMS Based NextJs Website Framework

54 lines (53 loc) 1.51 kB
import React from 'react'; import { CommonPhotosRendererProps } from './CommonPhotosRenderer'; import { CommonPageTitleRendererProps, CommonPageTitleRightRendererProps } from './CommonTabPage'; import { StaticArticlePageProps } from '../props/StaticArticlePageProps'; /** * Common article page content renderer props */ export type CommonArticlePageContentRendererProps = StaticArticlePageProps & { articleContentClassName: string; }; /** * Common article page props */ export type CommonArticlePageProps = StaticArticlePageProps & { /** * Artical class name */ articleClassName?: string; /** * Artical content class name */ articleContentClassName?: string; /** * Artical title class name */ articleTitleClassName?: string; /** * Content renderer */ contentRenderer?: (props: CommonArticlePageContentRendererProps) => React.ReactNode; /** * Is tab article? */ isTab?: boolean; /** * Photos renderer */ photosRenderer?: (props: CommonPhotosRendererProps) => React.ReactNode; /** * Title renderer */ titleRenderer?: (props: CommonPageTitleRendererProps) => React.ReactNode; /** * Title right part renderer */ titleRightRenderer?: (props: CommonPageTitleRightRendererProps) => React.ReactNode; }; /** * Common article page * @param props Props * @returns Component */ export declare function CommonArticlePage(props: CommonArticlePageProps): JSX.Element;