text: import React from "react";
  import { Switch, Route } from "react-router-dom";
  import Calculator from "./components/ammortation table/Calculator";
  // Components
  import Home from "./components/MainView/Home/Home";
  import contact from "./static/Contact Us/contactUs";
  import Simulator from "./components/MainView/simulator/Simulator";
  
  const Routes = () => {
    return (
      <Switch>
        <Route exact path="/" component={Home} />
  
        <Route exact path="/simulator" component={Simulator} />
  
        <Route
          path="/login"
          exact
          component={() => {
            window.location.href = "http://localhost:3000/#/login";
            return null;
          }}
        />
        <Route path="/contact" component={contact} />
        <Route path={"/mortage"} component={Calculator} exact />
        <Route
          path="/signUp"
          exact
          component={() => {
            window.location.href = "http://localhost:3000/#/register";
            return null;
          }}
        />
      </Switch>
    );
  };
  
  export default Routes;
  