UNPKG

@atlaskit/editor-common

Version:

A package that contains common classes and components for editor and renderer

18 lines (17 loc) 737 B
import type { ForwardRefExoticComponent, RefAttributes } from 'react'; import type { IntlShape } from 'react-intl'; export declare const getBadgeSize: (width?: number, height?: number) => "medium" | "small"; export type CommentBadgeProps = { badgeOffsetRight?: string; height?: number; intl: IntlShape; isDrafting?: boolean; isEditor?: boolean; mediaSingleElement?: HTMLElement | null; onClick: (e: React.MouseEvent) => void; onMouseEnter?: (e: React.MouseEvent) => void; onMouseLeave?: (e: React.MouseEvent) => void; status?: 'default' | 'entered' | 'active'; width?: number; }; export declare const CommentBadge: ForwardRefExoticComponent<CommentBadgeProps & RefAttributes<HTMLDivElement>>;