({action, children})
| 5 | import ErrorBoundary from './ErrorBoundary.js'; |
| 6 | |
| 7 | function ButtonDisabledWhilePending({action, children}) { |
| 8 | const {pending} = useFormStatus(); |
| 9 | return ( |
| 10 | <button disabled={pending} formAction={action}> |
| 11 | {children} |
| 12 | </button> |
| 13 | ); |
| 14 | } |
| 15 | |
| 16 | export default function Button({action, children}) { |
| 17 | return ( |
nothing calls this directly
no test coverage detected