feat(loader): add loader component
This commit is contained in:
parent
4e39ea5334
commit
8e0dd4ae39
|
@ -0,0 +1,20 @@
|
|||
// @flow
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { TextComponent } from './text';
|
||||
|
||||
const Wrapper = styled.div`
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
`;
|
||||
|
||||
export const LoaderComponent = () => (
|
||||
<Wrapper>
|
||||
<TextComponent value='Loading...' />
|
||||
</Wrapper>
|
||||
);
|
Loading…
Reference in New Issue