(e: React.KeyboardEvent)
| 9 | |
| 10 | export function ErrorToast({ message, onDismiss }: ErrorToastProps) { |
| 11 | const handleKeyDown = (e: React.KeyboardEvent) => { |
| 12 | if (e.key === "Enter" || e.key === " " || e.key === "Escape") { |
| 13 | e.preventDefault() |
| 14 | onDismiss() |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | return ( |
| 19 | <div |
nothing calls this directly
no outgoing calls
no test coverage detected