"use client"; import React, { useState, ChangeEvent } from "react"; import { Button, Col, Grid, TextInput } from "@tremor/react"; import { Card, Text } from "@tremor/react"; const EnterProxyUrl: React.FC = () => { const [proxyUrl, setProxyUrl] = useState(""); const [isUrlSaved, setIsUrlSaved] = useState(false); const handleUrlChange = (event: ChangeEvent) => { setProxyUrl(event.target.value); // Reset the saved status when the URL changes setIsUrlSaved(false); }; const handleSaveClick = () => { // You can perform any additional validation or actions here // For now, let's just display the message setIsUrlSaved(true); }; // Construct the URL for clicking const clickableUrl = `${window.location.href}?proxyBaseUrl=${proxyUrl}`; return (
Admin Configuration {/* Display message if the URL is saved */} {isUrlSaved && (

Proxy Admin UI (Save this URL): {clickableUrl}

Get Started with Proxy Admin UI 👉 {clickableUrl}

)}
); }; export default EnterProxyUrl;