Changement de couleur TailwindCSS basé sur la variable

{props.item.stock ?	//variable
	<span className="text-green-500"> In Stock </span>:
	<span className="text-red-500"> Out of Stock</span>
}
Unusual Unicorn