()
| 289 | } |
| 290 | |
| 291 | function ErrorBanner() { |
| 292 | const { state } = useSecretForm(); |
| 293 | if (state.status.kind !== "error") return null; |
| 294 | return ( |
| 295 | <div className="rounded-lg border border-destructive/30 bg-destructive/5 px-3 py-2"> |
| 296 | <p className="text-sm text-destructive">{state.status.message}</p> |
| 297 | </div> |
| 298 | ); |
| 299 | } |
| 300 | |
| 301 | type ButtonProps = React.ComponentProps<"button"> & VariantProps<typeof buttonVariants>; |
| 302 |
nothing calls this directly
no test coverage detected