@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
15 lines (14 loc) • 493 B
TypeScript
import { LexicalCommand } from 'lexical';
import { SCMediaType } from '@selfcommunity/types';
export interface InsertDocPayload {
src: string;
name: string;
type: string;
}
export declare const INSERT_DOC_COMMAND: LexicalCommand<InsertDocPayload>;
export interface MediaPluginProps {
className?: string;
onMediaAdd?: (media: SCMediaType) => void | null;
isUploading?: (boolean: any) => void;
}
export default function MediaPlugin(props: MediaPluginProps): JSX.Element;