Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
FolderInput,
Pencil,
} from '@sim/emcn'
import { Download, Link, Pin, Trash } from '@sim/emcn/icons'
import { Download, Link, Pin, Send, Trash } from '@sim/emcn/icons'
import type { MoveOptionNode } from '@/app/workspace/[workspaceId]/components/folders'
import { renderMoveOption } from '@/app/workspace/[workspaceId]/components/folders'

Expand All @@ -24,6 +24,7 @@ interface FileRowContextMenuProps {
position: { x: number; y: number }
onClose: () => void
onOpen: () => void
onCopyLink?: () => void
onDownload?: () => void
onRename: () => void
onDelete: () => void
Expand All @@ -42,6 +43,7 @@ export const FileRowContextMenu = memo(function FileRowContextMenu({
position,
onClose,
onOpen,
onCopyLink,
onDownload,
onRename,
onDelete,
Expand Down Expand Up @@ -87,6 +89,12 @@ export const FileRowContextMenu = memo(function FileRowContextMenu({
Open
</DropdownMenuItem>
)}
{!isMultiSelect && onCopyLink && (
<DropdownMenuItem onSelect={onCopyLink}>
<Link />
Copy Link
</DropdownMenuItem>
)}
{onDownload && (
<DropdownMenuItem onSelect={onDownload}>
<Download />
Expand All @@ -109,7 +117,7 @@ export const FileRowContextMenu = memo(function FileRowContextMenu({
)}
{!isMultiSelect && onShare && (
<DropdownMenuItem onSelect={onShare}>
<Link />
<Send />
Share
</DropdownMenuItem>
)}
Expand Down
Loading
Loading