import { UmbTiptapToolbarActionButtonApiBase } from '../tiptap-toolbar-action-button-api-base.js';
export default class UmbTiptapToolbarRedoExtensionApi extends UmbTiptapToolbarActionButtonApiBase {
    constructor() {
        super(...arguments);
        this.isActive = (editor) => editor?.can().redo() === true;
    }
    execute(editor) {
        editor?.chain().focus().redo().run();
    }
}
