diff --git a/desktop/src/features/channels/ui/ChannelManagementSheet.tsx b/desktop/src/features/channels/ui/ChannelManagementSheet.tsx index e2cf3e29f..db9385c17 100644 --- a/desktop/src/features/channels/ui/ChannelManagementSheet.tsx +++ b/desktop/src/features/channels/ui/ChannelManagementSheet.tsx @@ -1,6 +1,7 @@ import { Archive, ArchiveRestore, + Copy, DoorClosed, DoorOpen, FileText, @@ -11,6 +12,7 @@ import { Zap, } from "lucide-react"; import * as React from "react"; +import { toast } from "sonner"; import { useArchiveChannelMutation, @@ -73,6 +75,35 @@ function MetadataPill({ ); } +function ChannelIdRow({ channelId }: { channelId: string }) { + async function handleCopyChannelId() { + await navigator.clipboard.writeText(channelId); + toast.success("Copied channel ID to clipboard"); + } + + return ( + + ); +} + export function ChannelManagementSheet({ channel, currentPubkey, @@ -221,6 +252,7 @@ export function ChannelManagementSheet({
{detailsQuery.error.message}