2020-09-02 03:10:28 +03:00
|
|
|
import * as React from "react";
|
|
|
|
import * as Strings from "~/common/strings";
|
|
|
|
import * as Constants from "~/common/constants";
|
|
|
|
import * as System from "~/components/system";
|
|
|
|
|
|
|
|
import { css } from "@emotion/react";
|
|
|
|
|
|
|
|
const STYLES_EMPTY_STATE = css`
|
|
|
|
width: 100%;
|
2020-09-14 08:22:19 +03:00
|
|
|
height: 328px;
|
2020-09-27 00:15:37 +03:00
|
|
|
border: 1px solid ${Constants.system.lightBorder};
|
2020-09-14 08:22:19 +03:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
flex-direction: column;
|
|
|
|
padding: 24px;
|
|
|
|
border-radius: 4px;
|
2020-09-14 23:42:52 +03:00
|
|
|
text-align: center;
|
2020-10-08 06:08:55 +03:00
|
|
|
margin-top: 48px;
|
2020-09-02 03:10:28 +03:00
|
|
|
`;
|
|
|
|
|
|
|
|
export default class EmptyState extends React.Component {
|
|
|
|
render() {
|
|
|
|
return (
|
2020-09-14 08:22:19 +03:00
|
|
|
<div css={STYLES_EMPTY_STATE} style={this.props.style}>
|
|
|
|
{this.props.children}
|
|
|
|
</div>
|
2020-09-02 03:10:28 +03:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|