import React from 'react';
import { f } from '@src/resource/string';
import { getCache } from '@src/utils/cacheUtils';
import { Menu } from 'antd';
import { IconBtn } from '../docs/plugins/Components';
import { ELTYPE } from '../docs/plugins/config';
import { insertEditLink } from '../docs/plugins/EditLink';
import { isSameLineSelection } from '../docs/plugins/pluginsUtils/selectionUtils';
import { BlockIconButton, TabButton, TocButton, ToolbarButton, VersionButton } from '../docs/plugins/StaticToolbar/buttons';
import { ReactEditor } from '../slate-packages/slate-react';
export default (props: any) => {
const {
editor,
editorSelection,
setCardMenuVisible,
cardMenuVisible,
docWidth,
modalState,
setValue,
isShowAnchor,
setIsShowAnchor,
isDisabled,
hasSelCells,
} = props;
const isInElectron: boolean = getCache(editor?.docId, 'options')?.isInElectron;
return (
);
};