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 / Checkout / CheckoutPage.js
Size: Mime:
/**
 * @todo @@packages each of these steps should indicate if they are done
 */
import * as React from 'react';
import { isNonEmptyArray } from 'exotic';
import { oneRouter } from '@skava/router';
import Helmet from 'react-helmet';
import { CartContext } from '@skava/packages/core/cart';
import CheckoutAppShellFlat from './CheckoutAppShellFlat';
import { EmptyCheckout, StepperAccordion } from './sections';
import { StyledMain } from './styled';
class CheckoutPage extends React.Component {
    render() {
        const { products } = this.context;
        const { className, ...remainingProps } = this.props;
        return (React.createElement(StyledMain, { className: className },
            React.createElement(Helmet, null,
                React.createElement("title", null, "SkavaSTORE | Checkout")),
            oneRouter.full.includes('@packages') === true ? (React.createElement(CheckoutAppShellFlat, { key: "checkout" })) : isNonEmptyArray(products) ? (React.createElement(StepperAccordion, { key: "checkout" })) : (React.createElement(EmptyCheckout, { key: "checkout" }))));
    }
}
CheckoutPage.defaultProps = {
    className: 'register',
};
CheckoutPage.contextType = CartContext;
export { CheckoutPage };
export default CheckoutPage;
//# sourceMappingURL=CheckoutPage.js.map