import { useState } from "react"; import { useConsole } from "../context"; import { Card, Bar } from "../components/ui"; // Right-panel context for the Environments view: repo binding + counts. // Previously embedded in the environment card; the centre now stays the // environment list/create. export default function EnvContextPanel() { const ctx = useConsole(); const [repoSelect, setRepoSelect] = useState(""); return (
{ctx.envRepoLine || "先选项目"}
{ctx.envCount}
{ctx.envRepoBar ? ( ) : null} {ctx.envRepoMsg}
); }