import { ReactNode } from "react"; import { PlaygroundDeviceSelector } from "@/components/playground/PlaygroundDeviceSelector"; import { TrackToggle } from "@livekit/components-react"; import { Track } from "livekit-client"; type ConfigurationPanelItemProps = { title: string; children?: ReactNode; source?: Track.Source; }; export const ConfigurationPanelItem: React.FC = ({ children, title, source, }) => { return (

{title}

{source && ( {source === Track.Source.Camera && ( )} {source === Track.Source.Microphone && ( )} )}
{children}
); };