(e: { key: string })
| 68 | |
| 69 | useEffect(() => { |
| 70 | const close = (e: { key: string }) => { |
| 71 | if (e.key === 'Escape') { |
| 72 | setIsSearchOpen(false) |
| 73 | } |
| 74 | } |
| 75 | window.addEventListener('keydown', close) |
| 76 | return () => window.removeEventListener('keydown', close) |
| 77 | }, []) |
nothing calls this directly
no outgoing calls
no test coverage detected