diff --git a/client/src/components/lib/Canvas.tsx b/client/src/components/lib/Canvas.tsx index 73f21b9..e549eb9 100644 --- a/client/src/components/lib/Canvas.tsx +++ b/client/src/components/lib/Canvas.tsx @@ -1,6 +1,6 @@ import React, { MouseEvent, useEffect, useRef, FocusEvent } from 'react'; import { createElement } from '@/lib/canvasElements/canvasElementUtils'; -import { FileIcon } from '@radix-ui/react-icons'; +import { FileIcon, Link2Icon } from '@radix-ui/react-icons'; import { adjustElementCoordinatesById, rescalePointsInElem, @@ -102,6 +102,7 @@ export default function Canvas() { isSelectionFrameSet, toolOptions, attachedFileUrls, + attachedUrls, } = useCanvasElementStore([ 'addCanvasShape', 'addCanvasFreehand', @@ -134,6 +135,7 @@ export default function Canvas() { 'isSelectionFrameSet', 'toolOptions', 'attachedFileUrls', + 'attachedUrls', ]); const { socket, setWebsocketAction, setRoomID, setTenants, clearTenants } = @@ -749,6 +751,24 @@ export default function Canvas() { )} + {tool === 'select' && + attachedUrls[selectedElementIds[0]] !== undefined && ( + + + + )} + {action === 'writing' && (