mirror of
https://github.com/aljazceru/landscape-template.git
synced 2025-12-31 13:04:25 +01:00
24 lines
667 B
TypeScript
24 lines
667 B
TypeScript
|
|
import Skeleton from 'react-loading-skeleton';
|
|
|
|
interface Props {
|
|
size?: 'sm' | 'md'
|
|
}
|
|
|
|
export default function HeaderSkeleton({ size = 'md', }: Props) {
|
|
|
|
return (
|
|
<div className='flex gap-8'>
|
|
<Skeleton circle width={size === 'md' ? 40 : 32} height={size === 'md' ? 40 : 32} />
|
|
<div>
|
|
<p className={`${size === 'md' ? 'text-body4' : "text-body5"} text-black font-medium`}>
|
|
<Skeleton width={'12ch'} />
|
|
</p>
|
|
<p className={`text-body6 text-gray-600`}>
|
|
<Skeleton width={'7ch'} />
|
|
</p>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|