File size: 867 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
35
36
37
38
39
40
import {
   Box,
   HStack,
   Skeleton,
   SkeletonCircle,
   SkeletonText,
} from '@chakra-ui/react';
import React from 'react';
import useSkeletonColor from '../../hooks/useSkeletonColor';

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

   return (
      <Box
         bg='transparent'
         px='.5rem'
         mx='auto'
         maxW='650px'
         flex='1'
         mt='.5rem'
      >
         <HStack>
            <SkeletonCircle size='10' {...skeletonColor} />
            <SkeletonText
               mt='4'
               noOfLines={2}
               spacing='2'
               w='30%'
               {...skeletonColor}
            />
         </HStack>
         <Skeleton h='15px' mt={3} {...skeletonColor} />
         <Skeleton h='15px' mt={3} {...skeletonColor} />
      </Box>
   );
};

export default DetailSkeleton;