Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/packages / pages / MyAccount / sections / PrivacySection / PrivacySection.js
Size: Mime:
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