type Props = { variant: "default" | "success" | "failure"; }; export function NodesIcon({ variant }: Props) { let color = "#969696"; if (variant === "success") { color = "#3EE089"; } if (variant === "failure") { color = "var(--codex-color-error-hexa)"; } return ( ); }