import { JSXElement } from "solid-js"; export const BADGE_GREEN = "green"; export const BADGE_RED = "red"; export const BADGE_BLUE = "blue"; export const BADGE_AMBER = "amber"; export const BADGE_NEUTRAL = "neutral"; export const BADGE_MUTED = "muted"; const BASE = "inline-flex items-center gap-1 text-ss font-semibold py-0.5 px-2 rounded-default whitespace-nowrap"; const COLORS: Record = { "green": "text-white bg-green-700", "red": "text-white bg-red-700", "blue": "text-white bg-sky-800", "amber": "text-white bg-amber-700", "neutral": "text-white bg-neutral-500", "muted": "text-ink-faint bg-transparent", }; interface BadgeProps { color?: string; pill?: boolean; // When provided, the badge renders as a ` ); } return {props.children}; }