import React from 'react' import { artifactPath, artifactTypeLabel, compactSkillDisplayRows, formatClubPercent, } from '../../utils/skillProfileListHelpers' function formatWeight(value) { const n = Number(value) if (!Number.isFinite(n)) return '0' return n % 1 === 0 ? String(n) : n.toFixed(1) } /** * Kompakte Fähigkeiten-Zeile für Listen/Kacheln. */ export default function SkillProfileCompact({ summary, skillIds = [], loading = false, emptyText = 'Noch keine Übungen mit Fähigkeiten', displayLimit = 6, showClubBest = true, }) { if (loading) { return

Fähigkeiten werden berechnet…

} const rows = compactSkillDisplayRows(summary, { skillIds, limit: displayLimit }) if (!rows.length) { return summary ? (

{emptyText}

) : null } return (
Fähigkeiten
) }