2020-09-02 03:10:28 +03:00
|
|
|
import * as React from "react";
|
|
|
|
import * as Constants from "~/common/constants";
|
|
|
|
|
2020-11-30 08:24:22 +03:00
|
|
|
import { css } from "@emotion/react";
|
2020-09-02 03:10:28 +03:00
|
|
|
|
|
|
|
const STYLES_EMPTY_STATE = css`
|
|
|
|
width: 100%;
|
2020-09-14 08:22:19 +03:00
|
|
|
height: 328px;
|
2021-07-07 22:58:14 +03:00
|
|
|
border: 1px solid ${Constants.semantic.borderGrayLight};
|
2020-09-14 08:22:19 +03:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
flex-direction: column;
|
|
|
|
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
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|