@zsviczian/excalidraw
Version:
Excalidraw as a React component
19 lines (18 loc) • 1.2 kB
TypeScript
import type { ElementsMap, ExcalidrawEmbeddableElement, NonDeletedExcalidrawElement } from "@excalidraw/element/types";
import "./Hyperlink.scss";
import type { AppState, ExcalidrawProps, UIAppState } from "../../types";
export declare const Hyperlink: ({ element, elementsMap, setAppState, onLinkOpen, setToast, updateEmbedValidationStatus, }: {
element: NonDeletedExcalidrawElement;
elementsMap: ElementsMap;
setAppState: React.Component<any, AppState>["setState"];
onLinkOpen: ExcalidrawProps["onLinkOpen"];
setToast: (toast: {
message: string;
closable?: boolean;
duration?: number;
} | null) => void;
updateEmbedValidationStatus: (element: ExcalidrawEmbeddableElement, status: boolean) => void;
}) => import("react/jsx-runtime").JSX.Element | null;
export declare const getContextMenuLabel: (elements: readonly NonDeletedExcalidrawElement[], appState: UIAppState) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.create";
export declare const showHyperlinkTooltip: (element: NonDeletedExcalidrawElement, appState: AppState, elementsMap: ElementsMap) => void;
export declare const hideHyperlinkToolip: () => void;