(props: { readonly slug: string })
| 67 | /** The slug-collision alert with a link to the existing integration. Render |
| 68 | * gated by the caller (typically `show && !adding`). */ |
| 69 | export 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 "{props.slug}" 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected