import { Badge, Tooltip } from "@cloudhal/ui";
import { useT } from "../i18n/index.tsx";
import { scopeVariant } from "../lib/agents.ts";
import type { AgentScope } from "../lib/api.ts";
/** Scope pill with what it allows in a tooltip; `*` reads as "Full access". */
export function ScopeBadge({ scope }: { scope: AgentScope }) {
const t = useT();
if (scope === "*") return {t("agents.fullAccess")};
return (
{scope}
);
}