mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2025-03-01 01:04:08 +08:00
24 lines
378 B
TypeScript
24 lines
378 B
TypeScript
import { ReactNode } from 'react'
|
|
import cx from 'classnames'
|
|
|
|
const Skeleton = ({
|
|
children,
|
|
className,
|
|
}: {
|
|
children?: ReactNode
|
|
className?: string
|
|
}) => {
|
|
return (
|
|
<div
|
|
className={cx(
|
|
'relative animate-pulse bg-gray-100 text-transparent dark:bg-gray-800',
|
|
className
|
|
)}
|
|
>
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Skeleton
|