import UsageBar from "../resources/usage-bar"; export default function Resource({ children, icon, value, label, expandedValue = "", expandedLabel = "", percentage, expanded = false, additionalClassNames = "", }) { const Icon = icon; return (
{value}
{label}
{expanded && (
{expandedValue}
{expandedLabel}
)} {percentage >= 0 && } {children}
); }