import { CSSProperties, ReactNode } from 'react' import classNames from 'classnames' import { CommonComponentProps } from '../../utils/types' import './Skeleton.scss' export interface SkeletonProps extends CommonComponentProps { className?: string style?: CSSProperties children?: ReactNode row?: number title?: boolean avatar?: boolean avatarSize?: number | string avatarShape?: 'round' | 'square' round?: boolean loading?: boolean animated?: boolean } export function Skeleton(props: SkeletonProps) { const { className, children, row = 3, title = false, avatar = false, avatarSize = 32, avatarShape = 'round', round = false, loading = true, animated = false, ...restProps } = props const skeletonClass = classNames('s-skeleton', className, { 's-skeleton-round': round, 's-skeleton-animated': animated, }) return ( <> {loading ? (