()
| 273 | } |
| 274 | |
| 275 | function ErrorBanner() { |
| 276 | const { state } = useSecretForm(); |
| 277 | if (state.status.kind !== "error") return null; |
| 278 | return ( |
| 279 | <div className="rounded-lg border border-destructive/30 bg-destructive/5 px-3 py-2"> |
| 280 | <p className="text-sm text-destructive">{state.status.message}</p> |
| 281 | </div> |
| 282 | ); |
| 283 | } |
| 284 | |
| 285 | type ButtonProps = React.ComponentProps<"button"> & VariantProps<typeof buttonVariants>; |
| 286 |
nothing calls this directly
no test coverage detected