import React, { useState, useEffect, useRef } from 'react'; import { Redirect } from 'react-router'; import Nav1 from '../Components/MainNav'; import Nav2 from '../Components/SubNav'; function ShoppingCart() { return (