diff --git a/web/chat/edit-message-provider.js b/web/chat/edit-message-provider.js
--- a/web/chat/edit-message-provider.js
+++ b/web/chat/edit-message-provider.js
@@ -7,6 +7,8 @@
import type { ChatMessageInfoItem } from 'lib/selectors/chat-selectors.js';
import type { ThreadInfo } from 'lib/types/thread-types';
+import { EditTextMessage } from './edit-text-message.react.js';
+
export type ModalPosition = {
+left: number,
+top: number,
@@ -58,9 +60,28 @@
}, []);
const modal = React.useMemo(() => {
- // TODO: Add modal
- return null;
- }, []);
+ if (!editState || !editState.position) {
+ return null;
+ }
+
+ const tooltipNode = (
+