import { cn } from '@/lib/utils'; interface WebxdcEmbedProps { url: string; uuid?: string; name?: string; icon?: string; className?: string; } /** * Minimal WebXDC app embed — renders a download/launch link. * * WebXDC is a self-contained interactive app packaged as a .xdc zip. * Ditto's richer `WebxdcEmbed` renders the app in an iframe with a * message-passing bridge to Nostr for state sync. Replace this stub * with a full WebXDC host when needed; see https://webxdc.org for the spec. */ export function WebxdcEmbed({ url, name, icon, className }: WebxdcEmbedProps) { return ( e.stopPropagation()} className={cn( 'flex items-center gap-3 border rounded-lg px-3 py-2 my-2.5 hover:bg-muted/50 transition-colors text-sm', className, )} > {icon && ( )}
{name ?? 'WebXDC app'}
{url}
); }