import React, { memo } from 'react'; import { cn } from '../../lib/utils'; interface ResourceBarProps { label: string; value: number; className?: string; } export const ResourceBar = memo(function ResourceBar({ label, value, className }: ResourceBarProps) { const clamped = Math.max(0, Math.min(100, value)); return (