import type { CSSProperties } from 'react'; type Size = number | string; const pulseStyle = (extra: CSSProperties = {}): CSSProperties => ({ background: 'var(--bg-2)', animation: 'skeleton-pulse 1.5s ease-in-out infinite', ...extra, }); export function SkeletonBox({ width, height, borderRadius = 8, style, }: { width?: Size; height?: Size; borderRadius?: number; style?: CSSProperties; }) { return (
); } export function SkeletonLine({ width = '80%', height = 14 }: { width?: Size; height?: Size }) { return ; } export function SkeletonGradeCard() { return (
); } export function SkeletonGameCard() { return (
); } export function SkeletonRow({ count = 3 }: { count?: number }) { return (
{Array.from({ length: count }, (_, i) => ( ))}
); } export function SkeletonGradeRail({ count = 4 }: { count?: number }) { return (
{Array.from({ length: count }, (_, i) => (
))}
); }