import { useState } from "react";
import Footer from "./Footer";
import Navbar from "./Navbar";
import profilepic from "../img/samplepic.jpg";
import Addproperty from "./Addproperty";
import UserProperties from "./UserProperties";
import "../dashboard.css";
import { useSelector } from "react-redux";
import UserProfile from "./UserProfile";
import { NavLink } from "react-router-dom";
const Dashboard = () => {
const [activeTab, setActiveTab] = useState("dashboard");
const { user } = useSelector((state) => state.auth);
const renderTabContent = () => {
switch (activeTab) {
case "Userdetails":
return ;
case "addProperty":
return ;
case "activeProperties":
return (
Active Properties
);
case "closedProperties":
return These are your closed properties.
;
default:
return <>>;
}
};
return (
<>
{/* Left sidebar */}
{/* Main content area */}
Welcome to{" "}
{user.result.title}. {user.result.firstName}{" "}
{user.result.middleName} {user.result.lastName}
{activeTab === "dashboard" && (
<>
Now you are accessing the world's only portal which has Streamlined the
investor-borrower interactions,
gaining complete visibility
into your data, and using smart filters to
create automatic
workflows{" "}
>
)}
{renderTabContent()}
>
);
};
export default Dashboard;