File size: 734 Bytes
f5071ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import {
   Box,
   HStack,
   Skeleton,
   SkeletonCircle,
   SkeletonText,
} from '@chakra-ui/react';
import React from 'react';
import useSkeletonColor from '../../hooks/useSkeletonColor';

const SavedPostItemSkeleton = () => {
   const skeletonColor = useSkeletonColor();

   return (
      <HStack py='1rem'>
         <HStack flex={1}>
            <SkeletonCircle size='9' {...skeletonColor} />
            <Box flex={1}>
               <SkeletonText noOfLines={2} {...skeletonColor} />
            </Box>
         </HStack>

         <Skeleton
            height={5}
            w='70px'
            ms='2rem !important'
            {...skeletonColor}
         />
      </HStack>
   );
};

export default SavedPostItemSkeleton;