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

Function SlugCollisionAlert

packages/react/src/lib/integration-add.tsx:69–85  ·  view source on GitHub ↗
(props: { readonly slug: string })

Source from the content-addressed store, hash-verified

67/** The slug-collision alert with a link to the existing integration. Render
68 * gated by the caller (typically `show && !adding`). */
69export function SlugCollisionAlert(props: { readonly slug: string }) {
70 return (
71 <div className="rounded-lg border border-destructive/30 bg-destructive/5 px-3 py-2">
72 <p className="text-[12px] text-destructive">
73 An integration named &quot;{props.slug}&quot; already exists. To add more authentication,
74 update your existing integration.{" "}
75 <Link
76 to="/{-$orgSlug}/integrations/$namespace"
77 params={{ namespace: props.slug }}
78 className="font-medium underline underline-offset-2"
79 >
80 Open it
81 </Link>
82 </p>
83 </div>
84 );
85}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected