File size: 420 Bytes
b59aa07
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import SuccessIcon from "#/icons/success.svg?react";
import { cn } from "#/utils/utils";

interface KeyStatusIconProps {
  testId?: string;
  isSet: boolean;
}

export function KeyStatusIcon({ testId, isSet }: KeyStatusIconProps) {
  return (
    <span data-testid={testId || (isSet ? "set-indicator" : "unset-indicator")}>
      <SuccessIcon className={cn(isSet ? "text-success" : "text-danger")} />
    </span>
  );
}