Tailwindcss Alteração de cor com base na variável

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