// // Copyright 2024 DXOS.org // import React, { type ComponentPropsWithRef, forwardRef } from 'react'; import { useThemeContext } from '../../hooks'; import { type ThemedClassName } from '../../util'; type SkeletonProps = ThemedClassName> & { variant?: 'default' | 'circle' | 'text'; }; /** * A skeleton loading component that displays a placeholder while content is loading. */ const Skeleton = forwardRef( ({ classNames, variant = 'default', ...props }, forwardedRef) => { const { tx } = useThemeContext(); return
; }, ); export { Skeleton }; export type { SkeletonProps };