1/** 2 * Copyright (c) 2022 Gitpod GmbH. All rights reserved. 3 * Licensed under the GNU Affero General Public License (AGPL). 4 * See License.AGPL.txt in the project root for license information. 5 */ 6 7function Label(p: { text: string; color: string }) { 8 return ( 9 <span 10 className={`ml-3 text-sm text-${p.color}-600 truncate bg-${p.color}-100 px-1.5 py-0.5 rounded-md my-auto w-max`} 11 > 12 {p.text} 13 </span> 14 ); 15} 16 17export default Label; 18 19