Path: blob/main/components/dashboard/src/admin/Property.tsx
2500 views
/**1* Copyright (c) 2022 Gitpod GmbH. All rights reserved.2* Licensed under the GNU Affero General Public License (AGPL).3* See License.AGPL.txt in the project root for license information.4*/56import { ReactNode } from "react";78function Property(p: { name: string; children: ReactNode; actions?: { label: string; onClick: () => void }[] }) {9return (10<div className="flex flex-col w-4/12">11<div className="text-base text-gray-500">{p.name}</div>12<div className="mr-3 text-lg text-gray-600 font-semibold">{p.children}</div>13{(p.actions || []).map((a) => (14<div15className="cursor-pointer text-sm text-blue-400 dark:text-blue-600 hover:text-blue-600 dark:hover:text-blue-400 truncate"16onClick={a.onClick}17>18{a.label || ""}19</div>20))}21</div>22);23}2425export default Property;262728