```js <ChatBox onStart={onStart} onError={(type, error) => { console.debug(type, error); }} /> ```
npm install @flyingfly/chat-box``js`
onError={(type, error) => {
console.debug(type, error);
}}
/>
`js``
const onStart = async (ref: ChatBoxImperativeHandle) => {
await ref?.startCall({
mode: 'video',
config: {
appId: 'xxxxxx',
conversationId: 'xxxxxx',
appKey: 'xxxxxx',
userId: 'xxxx',
platform: 'prevshow.guiji.ai'
}
});
};