import React from "react"; import { BrowserRouter, Route, Switch } from "react-router-dom"; import { toast, ToastContainer } from "react-toastify"; import Dashboard from "./pages/Home/Dashboard"; import Chat from "./pages/Chat/Chat"; import Profile from "./pages/Profile/Profile"; import Signup from "./pages/Signup/Signup"; import Login from "./pages/Login/Login"; import "./App.css"; const App = () => { const showToast = (type, message) => { switch (type) { case 0: toast.warning(message); break; case 1: toast.success(message); break; default: break; } }; return ( } /> } /> } /> } /> } /> ); }; export default App;