UNPKG

react-smart-editor

Version:
29 lines 869 B
import React from 'react'; import { Editor } from 'slate'; import '../styles/LinkModal.css'; interface LinkModalProps { isOpen: boolean; initialUrl?: string; initialText?: string; position?: { x: number; y: number; }; editorElement?: HTMLElement | null; editor?: Editor; onSave: (url: string, text: string) => void; onRemove?: () => void; onClose: () => void; } /** * Modal component for adding/editing links * @param isOpen - Whether the modal is open * @param initialUrl - Initial URL value * @param initialText - Initial text value * @param onSave - Callback when saving the link * @param onRemove - Callback when removing the link * @param onClose - Callback when closing the modal */ declare const LinkModal: React.FC<LinkModalProps>; export default LinkModal; //# sourceMappingURL=LinkModal.d.ts.map