frontend > app
This commit is contained in:
21
app/components/Empty/Empty.js
Normal file
21
app/components/Empty/Empty.js
Normal file
@@ -0,0 +1,21 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { color } from 'styles/constants';
|
||||
|
||||
type Props = {
|
||||
children: string,
|
||||
};
|
||||
|
||||
const Empty = (props: Props) => {
|
||||
const { children, ...rest } = props;
|
||||
return <Container {...rest}>{children}</Container>;
|
||||
};
|
||||
|
||||
const Container = styled.div`
|
||||
display: flex;
|
||||
color: ${color.slate};
|
||||
text-align: center;
|
||||
`;
|
||||
|
||||
export default Empty;
|
||||
3
app/components/Empty/index.js
Normal file
3
app/components/Empty/index.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// @flow
|
||||
import Empty from './Empty';
|
||||
export default Empty;
|
||||
Reference in New Issue
Block a user