import React from "react"; import { BaseIconProps } from "."; export function GitLabIssueStatusIcon(props: BaseIconProps) { const { state, className, size = 16 } = props; const isOpen = state.name === "opened"; const color = state.color || (isOpen ? "#1aaa55" : "#db3b21"); // Green for open, red for closed return ( {!isOpen && ( )} {"draft" in state && state.draft && ( )} ); }