import { createBrowserRouter, RouterProvider } from "react-router-dom";

import Animated from "../../pages/Animated";
import Home from "../../pages/Home";
import HomeLayout from "../components/layouts/HomeLayout";
import Healthcare from "../../pages/SGPTProducts/Healthcare";

const router = createBrowserRouter([
  {
    path: "/",
    element: <HomeLayout />,
    children: [
      {
        path: "animated",
        element: <Animated />,
      },
      {
        path: "",
        element: <Home />,
      },
      {
        path: "/healthcare",
        element: <Healthcare />,
      },
    ],
  },
]);
//
const RouterProviderComponent = () => {
  return <RouterProvider router={router} />;
};

export default RouterProviderComponent;
