()
| 3 | import { useKeyboardFit } from './useKeyboardFit'; |
| 4 | |
| 5 | const Screen = (): React.ReactElement => { |
| 6 | const ref = useRef<HTMLDivElement>(null); |
| 7 | const height = useKeyboardFit(ref, true); |
| 8 | |
| 9 | return ( |
| 10 | <div ref={ref}> |
| 11 | <textarea aria-label="composer" /> |
| 12 | <span>{height === undefined ? 'unfitted' : `fitted ${height}`}</span> |
| 13 | </div> |
| 14 | ); |
| 15 | }; |
| 16 | |
| 17 | type ViewportStub = EventTarget & { |
| 18 | width: number; |
nothing calls this directly
no test coverage detected