import React from "react"; import { BrowserRouter, Routes, Route } from "react-router-dom"; import { connect } from "react-redux"; import Navbar from "./components/Navbar"; import BG from "./components/BG"; import BottomNavigation from "./components/BottomNavigation"; import _ from "lodash"; import Home from "./views/Home"; import Auth from "./views/Auth"; import Products from "./views/Products"; import Product from "./views/Product"; import ShoppingCart from "./views/ShoppingCart"; import DeliveryForm from "./views/DeliveryForm"; import Videos from "./views/Videos"; import QR from "./views/QR"; // import VideoTube from "./views/Home/VideoTube"; function Router({ isDark, isLogin, headerOptions }) { return (
{headerOptions?.shown && } } /> } /> } /> } /> } /> } /> } /> } /> } /> } />

No matches routes.

} />
); } const mapStateToProps = (state) => ({ isDark: state.publicApi.isDark, isLogin: state.user.status, headerOptions: state.publicApi.headerOptions, }); export default connect(mapStateToProps, {})(Router);