({
children,
...rest
}: ComponentProps<"fieldset">)
| 2 | import { useFormStatus } from "react-dom"; |
| 3 | |
| 4 | export default function Fieldset({ |
| 5 | children, |
| 6 | ...rest |
| 7 | }: ComponentProps<"fieldset">) { |
| 8 | const { pending } = useFormStatus(); |
| 9 | |
| 10 | return ( |
| 11 | <fieldset {...rest} disabled={pending}> |
| 12 | {children} |
| 13 | </fieldset> |
| 14 | ); |
| 15 | } |
nothing calls this directly
no outgoing calls
no test coverage detected