import { useEffect, useState } from "react"; import { NavLink } from "react-router-dom"; import { useNavigate } from "react-router-dom"; import { getProperties } from "../../redux/features/propertySlice"; import { useSelector, useDispatch } from "react-redux"; import UserProperties from "./UserProperties"; const AdminDashboard = () => { const dispatch = useDispatch(); const navigate = useNavigate(); const { properties } = useSelector((state) => state.property); // Set pagination state const page = 1; const limit = 10; // Number of results per page const keyword = ""; // State to track selected tab const [selectedTab, setSelectedTab] = useState("dashboard"); useEffect(() => { dispatch(getProperties({ page, limit, keyword })); }, [dispatch, page, keyword]); console.log("properties", properties); const renderContent = () => { switch (selectedTab) { case "activeUsers": return