Repository URL to install this package:
|
Version:
0.0.6 ▾
|
import * as React from 'react';
import { application } from '@skava/state';
import { StyledEmptyContent, StyledEmptyBox, StyledEmptyRight, StyledEmptyLeft } from './styled';
import { renderSuggestionContent, renderContent, renderImageContent, renderActionContent, } from './renderProps';
export class EmptyFeature extends React.PureComponent {
constructor() {
super(...arguments);
this.renderRightView = () => {
return (React.createElement(StyledEmptyRight, null,
!application.isMobile && renderContent(this.props),
renderSuggestionContent(this.props),
renderActionContent(this.props)));
};
}
render() {
const { className } = this.props;
return (React.createElement(StyledEmptyContent, { className: className },
React.createElement(StyledEmptyBox, null,
application.isMobile && renderContent(this.props),
React.createElement(StyledEmptyLeft, null, renderImageContent(this.props)),
this.renderRightView())));
}
}
//# sourceMappingURL=EmptyFeature.js.map