This commit is contained in:
phaichayon
2026-06-11 12:46:57 +07:00
parent 1993d88306
commit 7a390cf0df
720 changed files with 100919 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import { Card, CardContent, CardHeader } from '@/components/ui/card';
import { Skeleton } from '@/components/ui/skeleton';
export function BarGraphSkeleton() {
return (
<Card>
<CardHeader>
<div className='flex items-center gap-2'>
<Skeleton className='h-6 w-[160px]' />
<Skeleton className='h-5 w-[60px] rounded-full' />
</div>
<Skeleton className='h-4 w-[150px]' />
</CardHeader>
<CardContent>
<div className='flex aspect-auto h-[280px] w-full items-end justify-around gap-2 pt-8'>
{Array.from({ length: 12 }).map((_, i) => (
<Skeleton
key={i}
className='w-full rounded-t-sm'
style={{
height: `${Math.max(20, Math.random() * 100)}%`
}}
/>
))}
</div>
</CardContent>
</Card>
);
}