feat(react/ribbon): port note map partially

This commit is contained in:
Elian Doran
2025-08-22 23:47:02 +03:00
parent c33280bbb2
commit a85141ace2
5 changed files with 49 additions and 48 deletions

View File

@@ -0,0 +1,16 @@
import { TabContext } from "./ribbon-interface";
import NoteMapWidget from "../note_map";
import { useLegacyWidget } from "../react/hooks";
export default function NoteMapTab({ note, noteContext }: TabContext) {
const noteMapWidget = useLegacyWidget(() => new NoteMapWidget("ribbon"), {
noteContext,
containerClassName: "note-map-container"
});
return (
<div className="note-map-ribbon-widget">
{noteMapWidget}
</div>
);
}