@excalidraw/excalidraw
Version:
Excalidraw as a React component
17 lines (16 loc) • 622 B
TypeScript
import type { LibraryItems, UIAppState } from "../types";
import "./PublishLibrary.scss";
declare const PublishLibrary: ({ onClose, libraryItems, appState, onSuccess, onError, updateItemsInStorage, onRemove, }: {
onClose: () => void;
libraryItems: LibraryItems;
appState: UIAppState;
onSuccess: (data: {
url: string;
authorName: string;
items: LibraryItems;
}) => void;
onError: (error: Error) => void;
updateItemsInStorage: (items: LibraryItems) => void;
onRemove: (id: string) => void;
}) => import("react/jsx-runtime").JSX.Element;
export default PublishLibrary;