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