diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-08-09 17:14:28 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-08-09 17:14:28 +0700 |
| commit | 0bb71b8aa1da040a35399292b9c5919c5cad6d49 (patch) | |
| tree | 54934cad3d70bcb7d4112b54313e84b607f4b99f /src/lib/home/components/Skeleton | |
| parent | 0efb4f3aad012439a706e6704b781bb510478c6c (diff) | |
| parent | ebe159fc10e4c774ae1bd6aafa772f39618ca372 (diff) | |
<iman> Merge branch 'Feature/highlight-button-whatsapp' into development
Diffstat (limited to 'src/lib/home/components/Skeleton')
| -rw-r--r-- | src/lib/home/components/Skeleton/BannerPromoSkeleton.jsx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/home/components/Skeleton/BannerPromoSkeleton.jsx b/src/lib/home/components/Skeleton/BannerPromoSkeleton.jsx new file mode 100644 index 00000000..c5f39f19 --- /dev/null +++ b/src/lib/home/components/Skeleton/BannerPromoSkeleton.jsx @@ -0,0 +1,16 @@ +import useDevice from '@/core/hooks/useDevice' +import Skeleton from 'react-loading-skeleton' + +const BannerPromoSkeleton = () => { + const { isDesktop } = useDevice() + + return ( + <div className='grid grid-cols-1 md:grid-cols-3 gap-x-3'> + {Array.from({ length: isDesktop ? 3 : 1.2 }, (_, index) => ( + <Skeleton count={1} height={isDesktop ? 60 : 36} key={index} /> + ))} + </div> + ) +} + +export default BannerPromoSkeleton |
