import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Box, Text } from "ink";
import { StatusBadge } from "./design/StatusBadge.js";
export function remoteCalloutSummary(input) {
    const target = [input.profile, input.remotePath].filter(Boolean).join(" ");
    const permission = input.shellEnabled ? "shell enabled" : "shell approval required";
    return [target || "remote target", permission].join(" | ");
}
export function RemoteCallout(props) {
    return (_jsxs(Box, { children: [_jsx(StatusBadge, { label: "remote", tone: "warning" }), _jsxs(Text, { color: "gray", children: [" ", remoteCalloutSummary(props)] })] }));
}
