import type { Component } from '../types' import { getCategoryColor, getLicenseColor } from './utils' interface ComponentsTableProps { components: Component[] loading: boolean } export function ComponentsTable({ components, loading }: ComponentsTableProps) { if (loading) { return (
| Komponente | Version | Kategorie | Verwendungszweck | Port | Lizenz | Source |
|---|---|---|---|---|---|---|
|
{component.name}
|
{component.version} | {component.category || component.type} |
{component.description ? (
{component.description}
) : (
Keine Beschreibung
)}
|
{component.port ? ( {component.port} ) : ( - )} | {licenseId ? ( {licenseId} ) : ( - )} | {component.sourceUrl && component.sourceUrl !== '-' ? ( GitHub ) : ( - )} |