mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-11-09 04:38:49 +00:00
32 lines
753 B
TypeScript
32 lines
753 B
TypeScript
import { Snippet } from "@nextui-org/react";
|
|
import React from "react";
|
|
|
|
import { CopyIcon, DoneIcon, IdIcon } from "../icons";
|
|
|
|
interface SnippetIdProviderProps {
|
|
providerId: string;
|
|
}
|
|
export const SnippetIdProvider: React.FC<SnippetIdProviderProps> = ({
|
|
providerId,
|
|
}) => {
|
|
return (
|
|
<Snippet
|
|
className="flex items-center py-0"
|
|
color="default"
|
|
size="sm"
|
|
variant="flat"
|
|
radius="lg"
|
|
hideSymbol
|
|
copyIcon={<CopyIcon size={16} />}
|
|
checkIcon={<DoneIcon size={16} />}
|
|
>
|
|
<p className="flex items-center space-x-2">
|
|
<IdIcon size={16} />
|
|
<span className="text-sm max-w-24 overflow-x-scroll no-scrollbar">
|
|
{providerId}
|
|
</span>
|
|
</p>
|
|
</Snippet>
|
|
);
|
|
};
|