Repository URL to install this package:
|
Version:
0.0.15 ▾
|
import * as tslib_1 from "tslib";
import React from 'react';
import { observer } from 'xmobx/mobx-react';
import { sessionContainer } from '@skava/packages/core/auth/session/container';
import { Header, OuterWrapper } from './styled';
import { PrivacyModal } from './PrivacyModal';
import { privacyContainer } from './privacyContainer';
import { styledPrivacyWrapperView } from './renderProps';
let PrivacySection = class PrivacySection extends React.Component {
render() {
// @note @bhargavi - good optimization moving these out, but to observably update, it needs to be in here
const modalView = privacyContainer.privacyState.isModalVisible === true && React.createElement(PrivacyModal, { key: "modal" });
const privacyView = sessionContainer.isRegisteredUser && styledPrivacyWrapperView;
return (React.createElement(OuterWrapper, null,
React.createElement(Header, null),
privacyView,
modalView));
}
};
PrivacySection = tslib_1.__decorate([
observer
], PrivacySection);
export { PrivacySection };
export default PrivacySection;
//# sourceMappingURL=PrivacySection.js.map