MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / ErrorBanner

Function ErrorBanner

packages/react/src/plugins/secret-form.tsx:291–299  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

289}
290
291function 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
301type ButtonProps = React.ComponentProps<"button"> & VariantProps<typeof buttonVariants>;
302

Callers

nothing calls this directly

Calls 1

useSecretFormFunction · 0.85

Tested by

no test coverage detected