github.com/pluralsh/plural-cli@v0.9.5/pkg/ui/web/src/components/loader/Loader.tsx (about)

     1  import { LoopingLogo } from '@pluralsh/design-system'
     2  import React from 'react'
     3  import styled from 'styled-components'
     4  
     5  const Loader = styled(LoaderUnstyled)(() => ({
     6    height: '100%',
     7    display: 'flex',
     8    justifyContent: 'center',
     9    alignItems: 'center',
    10  }))
    11  
    12  function LoaderUnstyled({ ...props }): React.ReactElement {
    13    return (
    14      <div {...props}>
    15        <LoopingLogo />
    16      </div>
    17    )
    18  }
    19  
    20  export default Loader