UNPKG

@atlaskit/editor-plugin-block-type

Version:

BlockType plugin for @atlaskit/editor-core

11 lines (10 loc) • 571 B
import React from 'react'; import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types'; import type { BlockMenuItemComponentProps } from '@atlaskit/editor-plugin-block-menu/blockMenuPluginType'; import type { BlockTypePlugin } from '../blockTypePluginType'; type ParagraphBlockMenuItemProps = { api: ExtractInjectionAPI<BlockTypePlugin> | undefined; isSuggested?: boolean; }; export declare const createParagraphBlockMenuItem: ({ api }: ParagraphBlockMenuItemProps) => ({ isSuggested }?: BlockMenuItemComponentProps) => React.JSX.Element; export {};