mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-11-02 01:15:31 +00:00
Co-authored-by: Víctor Fernández Poyatos <victor@prowler.com> Co-authored-by: Drew Kerrigan <drew@prowler.com>
24 lines
553 B
TypeScript
24 lines
553 B
TypeScript
import { Tooltip } from "@nextui-org/react";
|
|
|
|
import { MutedIcon } from "../icons";
|
|
|
|
interface MutedProps {
|
|
isMuted: boolean;
|
|
mutedReason: string;
|
|
}
|
|
|
|
export const Muted = ({
|
|
isMuted,
|
|
mutedReason = "This finding is muted",
|
|
}: MutedProps) => {
|
|
if (isMuted === false) return null;
|
|
|
|
return (
|
|
<Tooltip content={mutedReason} className="text-xs">
|
|
<div className="w-fit rounded-full border border-system-severity-critical/40 p-1">
|
|
<MutedIcon className="h-4 w-4 text-system-severity-critical" />
|
|
</div>
|
|
</Tooltip>
|
|
);
|
|
};
|