"use client" import {Button} from "@/components/ui/button" import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, } from "@/components/ui/dialog" import {PropsWithChildren} from "types-react"; import {CodeSnippet} from "@/components/wrappers/CodeSnippet/CodeSnippet"; import {generateEdgeKey} from "@/utils/edge_key"; import {Copy} from "lucide-react"; import {useState} from "react"; import {CopyButton} from "@/components/wrappers/copy-button"; export type agentRegistrationDialogProps = PropsWithChildren<{}> export function AgentModalKey(props: agentRegistrationDialogProps) { const edge_key = generateEdgeKey('https://ok.com', '1234567'); const code = `EDGE_KEY = ${edge_key}`; return ( {props.children} Agent Edge Key
); }