()
| 3 | import { Skeleton, SkeletonText } from '@/components/ui/skeleton' |
| 4 | |
| 5 | export default function CardSkeleton() { |
| 6 | const skeletonCardStyles = { |
| 7 | padding: '1rem', |
| 8 | width: '100%', |
| 9 | height: '100%', |
| 10 | borderRadius: 'lg', |
| 11 | borderWidth: '1px', |
| 12 | boxShadow: 'sm', |
| 13 | borderColor: 'bg.200', |
| 14 | } |
| 15 | |
| 16 | return ( |
| 17 | <VStack gap={4} h="calc(100dvh - 8rem)" width="100%"> |
| 18 | <Flex height="4rem" w="100%" alignItems="end"> |
| 19 | <SkeletonText noOfLines={2} gap="1" /> |
| 20 | </Flex> |
| 21 | |
| 22 | <Box position="relative" height="100%" width="100%" flex="1"> |
| 23 | <Box {...skeletonCardStyles} bg="bg.50"> |
| 24 | <Skeleton height="100%" width="100%" /> |
| 25 | </Box> |
| 26 | </Box> |
| 27 | |
| 28 | <Flex height="4rem" w="100%" justifyContent="center" alignItems="center"> |
| 29 | <Skeleton height="50%" width="50%" /> |
| 30 | </Flex> |
| 31 | </VStack> |
| 32 | ) |
| 33 | } |
nothing calls this directly
no outgoing calls
no test coverage detected