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

Function ErrorBanner

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

Source from the content-addressed store, hash-verified

273}
274
275function 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
285type ButtonProps = React.ComponentProps<"button"> & VariantProps<typeof buttonVariants>;
286

Callers

nothing calls this directly

Calls 1

useSecretFormFunction · 0.85

Tested by

no test coverage detected