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