File size: 517 Bytes
4e1096a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import Quota from '@/components/Quota';
import { QuotaType } from '@/types/quota';

interface UsageStatsProps {
  quotas: QuotaType[];
}

const UsageStats: React.FC<UsageStatsProps> = ({ quotas }) => (
  <div className='rounded-lg'>
    <div className='p-0'>
      {quotas && quotas.length > 0 ? (
        <Quota quotas={quotas} showProgress className='space-y-4' labelClassName='pl-4 pr-2' />
      ) : (
        <div className='h-10 animate-pulse'></div>
      )}
    </div>
  </div>
);

export default UsageStats;