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 LiveKit Agent Playground with a custom server using LiveKit Cloud or LiveKit Server.