Files
pipecat/examples/simple-chatbot/client/react/src/components/StatusDisplay.tsx

12 lines
266 B
TypeScript

import { useRTVIClientTransportState } from '@pipecat-ai/client-react';
export function StatusDisplay() {
const transportState = useRTVIClientTransportState();
return (
<div className="status">
Status: <span>{transportState}</span>
</div>
);
}