Start ChatInputWidget hook

This commit is contained in:
Bill 2022-05-25 10:37:07 -04:00
parent 9915b0b3e4
commit 2eaf0495c8

View File

@ -0,0 +1,18 @@
import { useEffect, useState } from 'react';
import { useRoom } from '../useRoom';
const useChatInputWidgetState = () =>
{
const [ isTyping, setIsTyping ] = useState<boolean>(false);
const { roomSession = null, widgetHandler = null } = useRoom();
useEffect(() =>
{
if(!isTyping || !roomSession) return;
}, [ isTyping, roomSession ]);
}
export const useChatInputWidget = useChatInputWidgetState;