import { Editor } from '@tiptap/react'; import { SetVideoAlignmentData, SetVideoData } from '../types'; /** * Hook to handle video-related actions in the HTML editor. * * @param editor - The TipTap editor instance. * @returns Object with video handler functions. */ export default function useHtmlEditorVideoAction(editor: Editor | null): { handleInsertVideo: (data: SetVideoData) => void; handleUpdateVideoAlignment: (data: SetVideoAlignmentData) => void; handleDeleteVideo: () => void; };