import { jsx as _jsx } from "react/jsx-runtime";
import { getDefaultSlashMenuItems, } from "@endexai/blocknote-core";
import { RiEmotionFill, RiFile2Line, RiFilmLine, RiH1, RiH2, RiH3, RiImage2Fill, RiListCheck3, RiListOrdered, RiListUnordered, RiTable2, RiText, RiVolumeUpFill, RiCodeBlock, } from "react-icons/ri";
const icons = {
    heading: RiH1,
    heading_2: RiH2,
    heading_3: RiH3,
    numbered_list: RiListOrdered,
    bullet_list: RiListUnordered,
    check_list: RiListCheck3,
    paragraph: RiText,
    table: RiTable2,
    image: RiImage2Fill,
    video: RiFilmLine,
    audio: RiVolumeUpFill,
    file: RiFile2Line,
    emoji: RiEmotionFill,
    code_block: RiCodeBlock,
};
export function getDefaultReactSlashMenuItems(editor) {
    return getDefaultSlashMenuItems(editor).map((item) => {
        const Icon = icons[item.key];
        return {
            ...item,
            icon: _jsx(Icon, { size: 18 }),
        };
    });
}
//# sourceMappingURL=getDefaultReactSlashMenuItems.js.map