import { Route, Routes } from "react-router-dom";
import { RouteHandler } from "./routes";
import { GetStartedPage, HomePage, LoginPage, DashboardHome } from "../pages";
import { DashboardAuth } from "../components";

const Routers = () => {
  return (
    <Routes>
      <Route path={RouteHandler.homepage} element={<HomePage />} />
      <Route path={RouteHandler.loginpage} element={<LoginPage />} />
      <Route path={RouteHandler.getStarted} element={<GetStartedPage />} />
      <Route element={<DashboardAuth />}>
          <Route path={RouteHandler.dashboardHome} element={<DashboardHome />} />
      </Route>
      <Route path='*'element={<>Error Page</>} />
    </Routes>
  );
};

export default Routers;
