import { Editor } from '@tiptap/react'; import { ActiveLinkData, SetLinkData } from '../types'; /** * Hook to handle link-related actions in the HTML editor. * * @param editor - The TipTap editor instance. * @param selectedLink - The currently selected link data. * @returns Object with link handler functions. */ export default function useHtmlEditorLinkAction(editor: Editor | null, selectedLink: ActiveLinkData | null): { handleLink: (data: SetLinkData) => void; handleUnlink: () => void; };