import { useState } from 'react';
import {
Webchat,
WebchatProvider,
Fab,
getClient,
Configuration,
} from '@botpress/webchat';
const clientId = "819515ed-2cce-4263-9a04-fe3c65e9d515";
const configuration: Configuration = {
color: '#000',
};
export default function App() {
const client = getClient({
clientId,
});
const [isWebchatOpen, setIsWebchatOpen] = useState(false);
const toggleWebchat = () => {
setIsWebchatOpen((prevState) => !prevState);
};
return (
);
}
npm install @botpress/webchat@2.3