import { hooks } from 'botframework-webchat'; import React, { memo, useCallback } from 'react'; import testIds from '../../testIds'; import { FluentIcon } from '../icon'; import { useTelephoneKeypadShown } from '../telephoneKeypad'; import { ToolbarButton } from './Toolbar'; const { useLocalizer } = hooks; const TelephoneKeypadToolbarButton = memo(() => { const [telephoneKeypadShown, setTelephoneKeypadShown] = useTelephoneKeypadShown(); const localize = useLocalizer(); const handleClick = useCallback(() => setTelephoneKeypadShown(shown => !shown), [setTelephoneKeypadShown]); return ( ); }); TelephoneKeypadToolbarButton.displayName = 'SendBox.TelephoneKeypadToolbarButton'; export default TelephoneKeypadToolbarButton;