type BadgeProps = { className?: string; color?: "Green" | "Blue" | "Orange" | "Red" | "Black"; tag?: "Filled" | "Line"; type?: "Circle" | "Rectangle"; }; export default function Badge({ className, color = "Green", tag = "Filled", type = "Circle" }: BadgeProps) { const isCircleAndBlackAndFilled = type === "Circle" && color === "Black" && tag === "Filled"; const isCircleAndBlackAndLine = type === "Circle" && color === "Black" && tag === "Line"; const isCircleAndBlueAndFilled = type === "Circle" && color === "Blue" && tag === "Filled"; const isCircleAndBlueAndLine = type === "Circle" && color === "Blue" && tag === "Line"; const isCircleAndGreenAndLine = type === "Circle" && color === "Green" && tag === "Line"; const isCircleAndOrangeAndFilled = type === "Circle" && color === "Orange" && tag === "Filled"; const isCircleAndOrangeAndLine = type === "Circle" && color === "Orange" && tag === "Line"; const isCircleAndRedAndFilled = type === "Circle" && color === "Red" && tag === "Filled"; const isCircleAndRedAndLine = type === "Circle" && color === "Red" && tag === "Line"; const isRectangleAndBlackAndFilled = type === "Rectangle" && color === "Black" && tag === "Filled"; const isRectangleAndBlackAndLine = type === "Rectangle" && color === "Black" && tag === "Line"; const isRectangleAndBlueAndFilled = type === "Rectangle" && color === "Blue" && tag === "Filled"; const isRectangleAndBlueAndLine = type === "Rectangle" && color === "Blue" && tag === "Line"; const isRectangleAndGreenAndFilled = type === "Rectangle" && color === "Green" && tag === "Filled"; const isRectangleAndGreenAndLine = type === "Rectangle" && color === "Green" && tag === "Line"; const isRectangleAndOrangeAndFilled = type === "Rectangle" && color === "Orange" && tag === "Filled"; const isRectangleAndOrangeAndLine = type === "Rectangle" && color === "Orange" && tag === "Line"; const isRectangleAndRedAndFilled = type === "Rectangle" && color === "Red" && tag === "Filled"; const isRectangleAndRedAndLine = type === "Rectangle" && color === "Red" && tag === "Line"; return (
5
{type === "Rectangle" && color === "Black" ? "Msg" : type === "Rectangle" && color === "Red" ? "Error" : type === "Rectangle" && color === "Orange" ? "Warn" : type === "Rectangle" && color === "Blue" ? "Active" : type === "Rectangle" && color === "Green" ? "Done" : ""}
)}