botframework-webchat-component
Version:
React component of botframework-webchat
9 lines (5 loc) • 365 B
text/typescript
import { WaitUntilable } from './internal/createWaitUntilable';
import { createPropagation } from 'use-propagate';
export type SendBoxFocusOptions = WaitUntilable<{ noKeyboard: boolean }>;
const { useListen: useRegisterFocusSendBox, usePropagate: useFocusSendBox } = createPropagation<SendBoxFocusOptions>();
export { useRegisterFocusSendBox, useFocusSendBox };