import { forwardRef } from 'react' import Block from '../Primitives/Block/Block' import Skeleton from './Skeleton' import SkeletonAvatar from './SkeletonAvatar' import type { SkeletonCardProps } from './types' import { ButtonSize, ButtonType } from '../Button/types' import Button from '../Button/Button' import { useSkeletonBase } from './hooks/useSkeletonBase' import FOUNDATION_THEME from '../../tokens/theme.token' const SkeletonCard = forwardRef( ( { variant = 'pulse', loading = true, padding = '16px', children, ...rest }, ref ) => { const { shouldRender, tokens: skeletonTokens } = useSkeletonBase(loading) // If not loading, render children or nothing if (!shouldRender) { return children ? <>{children} : null } // Default card skeleton layout if no children provided const defaultContent = ( <> {/* Header with avatar and text */} {/* Content area */} {/* Footer with buttons */}