import { FeatureSettingsWindow } from "@nodedc/ui-react";
import { FoundryCodexAgentSettings } from "./FoundryCodexAgentSettings.js";

interface FoundrySettingsModalProps {
  open: boolean;
  onClose: () => void;
}

export function FoundrySettingsModal({ open, onClose }: FoundrySettingsModalProps) {
  return (
    <FeatureSettingsWindow
      open={open}
      title="Настройки Foundry"
      subtitle="NODE DC / Codex Agent API"
      identity={{ title: "NODE.DC Foundry", subtitle: "Текущий пользователь", avatarLabel: "NF" }}
      sections={[{ id: "codex-agent-api", label: "Codex Agent API", group: "Features", icon: "network" }]}
      activeSection="codex-agent-api"
      onSectionChange={() => undefined}
      onClose={onClose}
    >
      <FoundryCodexAgentSettings />
    </FeatureSettingsWindow>
  );
}
