import { forwardRef } from 'react' import type { HTMLAttributes } from 'react' import { cva, type VariantProps } from 'class-variance-authority' import { cn } from '@/lib/utils' const skeletonVariants = cva('animate-pulse bg-fill-tertiary', { variants: { rounded: { default: 'rounded-md', circle: 'rounded-full', }, }, defaultVariants: { rounded: 'default' }, }) export interface SkeletonProps extends HTMLAttributes, VariantProps { rounded?: 'default' | 'circle' } export const Skeleton = forwardRef( ({ className, rounded = 'default', ...props }, ref) => (
) ) Skeleton.displayName = 'Skeleton' export { skeletonVariants }