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