PageLoading.tsx 524 B

1234567891011121314151617181920212223242526
  1. import React from 'react';
  2. import styled from 'styled-components';
  3. import { Flex } from 'reflexbox/styled-components';
  4. import { spin } from '../helpers/animations';
  5. const Icon = styled.img`
  6. display: block;
  7. width: 28px;
  8. height: 28px;
  9. animation: ${spin} 1s linear infinite;
  10. `;
  11. const pageLoading = () => (
  12. <Flex
  13. flex="1 1 250px"
  14. alignItems="center"
  15. alignSelf="center"
  16. justifyContent="center"
  17. margin="0 0 48px"
  18. >
  19. <Icon src="/images/loader.svg" />
  20. </Flex>
  21. );
  22. export default pageLoading;