"use client"; import React, { useState } from "react"; import TextField from "@/app/components/fields/textfield"; import TopHeader from "@/app/components/topHeader/TopHeader"; import TopToolTip from "@/app/components/topToolTip/TopToolTip"; import globalStyle from "../../globalStyle.module.css"; import createAgentStyle from "./styles.module.css"; import Prompts from "@/app/components/prompts/Prompts"; import useAgentForm from "@/app/hooks/useAgentForm"; import Alert from "@/app/components/alerts/Alert"; const AddAgentPage = () => { const [isChecked, setIsChecked] = useState(false); const handleCheckboxChange = (e) => { setIsChecked(e.target.checked); }; const { register, handleSubmit, errors, onSubmit, triggerAlert, setTriggerAlert, } = useAgentForm(); return (
{triggerAlert && ( setEditState(true)} title="Create New Agent" /> )}
{/* Create agent Container */}
{/* Header */}

Agent Details

{/* Agent name input */}
{/* Label */}

Agent Name

*

{/* Input Field */}
{/* Kubernetes API input */}
{/* Label */}

Kubernetes API Proxy Name

*

{/* Input Field */}
{/* Checkbox */}
{/* Checkbox */}
{/* List */}

Use Tailscale VPN

Enable Tailscale for secure private networking. When enabled,
the endpoint will be automatically resolved from Tailscale.

{/* Agent endpoint */}
{/* Label */}

Agent Endpoint

*

{/* Input Field */}
); }; export default AddAgentPage;