import { Check, CloudOff } from "lucide-react"; import { SidebarCompactActionCard, type SidebarActionCardSurface, } from "@/shared/ui/sidebar-action-card"; import { Spinner } from "@/shared/ui/spinner"; type SidebarRelayConnectionCardProps = { isActionDisabled?: boolean; actionTestId?: string; className?: string; isConnected?: boolean; isReconnectPending: boolean; isWaitingOnReconnectHook?: boolean; onDismiss?: () => void; onReconnect: () => void; surface?: SidebarActionCardSurface; testId?: string; }; export function SidebarRelayConnectionCard({ actionTestId, className, isActionDisabled = false, isConnected = false, isReconnectPending, isWaitingOnReconnectHook = false, onDismiss, onReconnect, surface, }: SidebarRelayConnectionCardProps) { return ( ); } export function SidebarRelayConnectionCompactCard({ actionTestId, className, isActionDisabled = false, isConnected = false, isReconnectPending, isWaitingOnReconnectHook = false, onDismiss, onReconnect, surface, testId = "sidebar-relay-unreachable-compact", }: SidebarRelayConnectionCardProps) { const reconnectTitle = isWaitingOnReconnectHook ? "Waiting to reconnect" : "Connecting"; const reconnectDescription = isWaitingOnReconnectHook ? "Complete any prompts opened by the reconnect helper to continue." : "Reconnecting"; return (