import { useCopy } from "../../ui/copy"; import { Glyph } from "../../ui/icons"; import { Btn, NameTag } from "./primitives"; import type { RemoteControlRequest } from "../../native/wire"; // One participant requests remote control. The caller owns authorization. export function RemoteControlRequestCard({ name, peerId, state, failed, decisionDisabled, stopDisabled, onAllow, onDecline, onStop }: { name: string; peerId: string; state: RemoteControlRequest["state"]; failed?: boolean; decisionDisabled?: boolean; stopDisabled?: boolean; onAllow: () => void; onDecline: () => void; onStop: () => void; }) { const { t, vis } = useCopy(); const pending = state === "pending"; return