import { useConfig } from "@/hooks/useConfig"; import { Button } from "./button/Button"; import { useState } from "react"; type PlaygroundConnectProps = { accentColor: string; onConnectClicked: () => void; }; export const PlaygroundConnect = ({ accentColor, onConnectClicked, }: PlaygroundConnectProps) => { const { setUserSettings, config } = useConfig(); const [url, setUrl] = useState(config.settings.ws_url) const [token, setToken] = useState(config.settings.token) return (

Connect to playground

Connect LiveKit Agent Playground with a custom server using LiveKit Cloud or LiveKit Server.

setUrl(e.target.value)} className="text-white text-sm bg-transparent border border-gray-800 rounded-sm px-3 py-2" placeholder="wss://url" >
Don’t have a URL or token? Try out our KITT example to see agents in action!
); };