diff --git a/components/ui/entities/entity-info-short.tsx b/components/ui/entities/entity-info-short.tsx index 3e71d7afbc..80a7084223 100644 --- a/components/ui/entities/entity-info-short.tsx +++ b/components/ui/entities/entity-info-short.tsx @@ -7,6 +7,7 @@ import { KS8ProviderBadge, } from "../../icons/providers-badge"; import { SnippetId } from "./snippet-id"; +import { SnippetLabel } from "./snippet-label"; interface EntityInfoProps { connected?: boolean | null; @@ -36,16 +37,12 @@ export const EntityInfoShort: React.FC = ({ }; return ( -
-
-
-
{getProviderLogo()}
-
- - {entityAlias} - - -
+
+
+
{getProviderLogo()}
+
+ +
diff --git a/components/ui/entities/index.ts b/components/ui/entities/index.ts index 70a72f858c..811b90956c 100644 --- a/components/ui/entities/index.ts +++ b/components/ui/entities/index.ts @@ -2,3 +2,4 @@ export * from "./date-with-time"; export * from "./entity-info-short"; export * from "./scan-status"; export * from "./snippet-id"; +export * from "./snippet-label"; diff --git a/components/ui/entities/snippet-id.tsx b/components/ui/entities/snippet-id.tsx index 8ac946d4ca..9ec4b90375 100644 --- a/components/ui/entities/snippet-id.tsx +++ b/components/ui/entities/snippet-id.tsx @@ -10,7 +10,7 @@ interface SnippetIdProps { export const SnippetId: React.FC = ({ entityId, ...props }) => { return ( = ({ entityId, ...props }) => { >

- + {entityId}

diff --git a/components/ui/entities/snippet-label.tsx b/components/ui/entities/snippet-label.tsx new file mode 100644 index 0000000000..8875976616 --- /dev/null +++ b/components/ui/entities/snippet-label.tsx @@ -0,0 +1,30 @@ +import { Snippet } from "@nextui-org/react"; +import React from "react"; + +import { CopyIcon, DoneIcon } from "@/components/icons"; + +interface SnippetLabelProps { + label: string; + [key: string]: any; +} +export const SnippetLabel: React.FC = ({ + label, + ...props +}) => { + return ( + } + checkIcon={} + {...props} + > +

+ {label} +

+
+ ); +};