UNPKG

notion-block-renderer

Version:
31 lines (30 loc) 771 B
/// <reference types="react" /> import { BlockType, FileBlockType, RichTextType } from "./types"; export declare type BlockProps = { block: BlockType; prefix?: string; blockPrefix?: string; blocksPrefix?: string; isCodeHighlighter?: boolean; syntaxHighlighterCSS?: { [key: string]: React.CSSProperties; }; }; export declare type BlocksProps = Omit<BlockProps, "block"> & { blocks: BlockType[]; }; export declare type TextProps = { richTextArr: any; isCaption?: boolean; }; export declare type CodeProps = { lang: string; richTextArr: RichTextType[]; }; export declare type BlockListProps = { blockType: string; children: JSX.Element[]; }; export declare type FileBlockProps = { block: FileBlockType; };