+
Basket
+
+ {orderProducts.map((product) => (
+
+ ))}
+
+
+ Total price: {totalPrice}
+
+
+ );
+};
+
+const mapStateToProps = (state) => {
+ return {
+ orderProduct: state.order,
+ };
+};
+
+export default connect(mapStateToProps)(basket);
diff --git a/src/components/basket/basket.module.css b/src/components/basket/basket.module.css
new file mode 100644
index 0000000..8cab1c5
--- /dev/null
+++ b/src/components/basket/basket.module.css
@@ -0,0 +1,18 @@
+.basket {
+ padding: 32px;
+ border-top: 1px solid var(--black);
+ border-bottom: 1px solid var(--black);
+}
+.title {
+ text-align: center;
+ margin-bottom: 16px;
+}
+.totalPrice {
+ margin-top: 16px;
+ padding: 0 32px;
+ font-weight: 300;
+ font-size: 24px;
+}
+.totalPrice span {
+ font-weight: 500;
+}
diff --git a/src/components/basket/index.js b/src/components/basket/index.js
new file mode 100644
index 0000000..d9c6b0c
--- /dev/null
+++ b/src/components/basket/index.js
@@ -0,0 +1 @@
+export { default } from './basket';
diff --git a/src/components/order/index.js b/src/components/order/index.js
new file mode 100644
index 0000000..0bc73e4
--- /dev/null
+++ b/src/components/order/index.js
@@ -0,0 +1 @@
+export { default } from './order';
diff --git a/src/components/order/order.js b/src/components/order/order.js
new file mode 100644
index 0000000..857225b
--- /dev/null
+++ b/src/components/order/order.js
@@ -0,0 +1,46 @@
+import React from 'react';
+import { connect } from 'react-redux';
+import styles from './order.module.css';
+import { decrement, increment, remove } from '../../redux/actions';
+
+const Order = ({ product, amount, increment, decrement, remove }) => {
+ return (
+