feat(loader): add loader component

This commit is contained in:
George Lima 2019-06-04 21:29:21 -03:00
parent 4e39ea5334
commit 8e0dd4ae39
1 changed files with 20 additions and 0 deletions

20
app/components/loader.js Normal file
View File

@ -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>
);