index.tsx 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import React from 'react';
  2. import { useTranslation } from 'react-i18next';
  3. import Box from '../Box';
  4. import Skeleton from '../Skeleton';
  5. import { Container, Text } from './styled';
  6. const PdfSkeleton: React.SFC = () => {
  7. const { t } = useTranslation('toast');
  8. return (
  9. <Container>
  10. <Skeleton variant="rect" width="50%" height="36px" />
  11. <Skeleton variant="rect" width="45%" height="12px" />
  12. <Skeleton variant="rect" width="40%" height="12px" />
  13. <Box mt="30">
  14. <Skeleton variant="rect" width="100%" height="14px" />
  15. <Skeleton variant="rect" width="100%" height="14px" />
  16. <Skeleton variant="rect" width="100%" height="14px" />
  17. <Skeleton variant="rect" width="90%" height="14px" />
  18. </Box>
  19. <Box mt="5" d="flex">
  20. <Skeleton variant="rect" width="100%" height="120px" />
  21. <Box ml="15">
  22. <Skeleton variant="rect" width="70%" height="16px" />
  23. <Skeleton variant="rect" width="100%" height="12px" />
  24. <Skeleton variant="rect" width="100%" height="12px" />
  25. <Skeleton variant="rect" width="100%" height="12px" />
  26. <Skeleton variant="rect" width="80%" height="12px" />
  27. </Box>
  28. </Box>
  29. <Box mt="15">
  30. <Skeleton variant="rect" width="100%" height="14px" />
  31. <Skeleton variant="rect" width="100%" height="14px" />
  32. <Skeleton variant="rect" width="90%" height="14px" />
  33. <Skeleton variant="rect" width="85%" height="14px" />
  34. </Box>
  35. <Text>{t('processing')}</Text>
  36. </Container>
  37. );
  38. };
  39. export default PdfSkeleton;