import { jsx as _jsx } from "react/jsx-runtime";
import { Plugin } from 'prosemirror-state';
import { BaseTooltipPluginView } from "../../../../../plugins/BaseTooltip/index.js";
import { noteType } from "../../utils.js";
import { YfmNoteToolbar } from "./YfmNoteToolbar.js";
export const yfmNoteTooltipPlugin = (_deps) => new Plugin({
    view(view) {
        return new BaseTooltipPluginView(view, {
            idPrefix: 'yfm-note-tooltip',
            nodeType: noteType(view.state.schema),
            popupPlacement: ['bottom', 'top'],
            content: (view, { node, pos }) => (_jsx(YfmNoteToolbar, { node: node, pos: pos, editorView: view })),
        });
    },
});
//# sourceMappingURL=index.js.map
