import React, {PureComponent} from 'react' import PropTypes from "prop-types"; /** * Component that renders all things for order. * It acts like-a layout, this component do nothing more. */ export class OrderPanel extends PureComponent { static get propTypes() { return { title: PropTypes.string, description: PropTypes.element, crateMode: PropTypes.element, crate: PropTypes.element, summaryPrice: PropTypes.element, form: PropTypes.element, isMobile: PropTypes.bool, onClickToggleMobileSideMenu: PropTypes.func, onClickOpenImport: PropTypes.func, }; } render() { const { title, description, crateMode, crate, summaryPrice, form, isMobile, onClickToggleMobileSideMenu, onClickOpenImport, } = this.props; return (

{title}

{description} {crateMode}
{isMobile ? (
) : null} {crate}
{summaryPrice} {form}
); } }