Repository URL to install this package:
|
Version:
0.0.15 ▾
|
/**
* @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