({action, children})
| 7 | const h = React.createElement; |
| 8 | |
| 9 | function ButtonDisabledWhilePending({action, children}) { |
| 10 | const {pending} = useFormStatus(); |
| 11 | return h( |
| 12 | 'button', |
| 13 | { |
| 14 | disabled: pending, |
| 15 | formAction: action, |
| 16 | }, |
| 17 | children |
| 18 | ); |
| 19 | } |
| 20 | |
| 21 | export default function Button({action, children}) { |
| 22 | return h( |
nothing calls this directly
no test coverage detected