import DashboardStats from './components/DashboardStats' import AmountStats from './components/AmountStats' import PageStats from '@/Components/features/dashboard/components/PageStats' import UserGroupIcon from '@heroicons/react/24/outline/UserGroupIcon' import UsersIcon from '@heroicons/react/24/outline/UsersIcon' import CircleStackIcon from '@heroicons/react/24/outline/CircleStackIcon' import CreditCardIcon from '@heroicons/react/24/outline/CreditCardIcon' import UserChannels from './components/UserChannels' import LineChart from './components/LineChart' import BarChart from './components/BarChart' import DashboardTopBar from './components/DashboardTopBar' import { useDispatch } from 'react-redux' import { showNotification } from '../common/headerSlice' import DoughnutChart from './components/DoughnutChart' import { useState } from 'react' const statsData = [ { title: "New Users", value: "34.7k", icon: , description: "↗︎ 2300 (22%)" }, { title: "Total Sales", value: "$34,545", icon: , description: "Current month" }, { title: "Pending Leads", value: "450", icon: , description: "50 in hot leads" }, { title: "Active Users", value: "5.6k", icon: , description: "↙ 300 (18%)" }, ] function Dashboard() { const dispatch = useDispatch() const updateDashboardPeriod = (newRange) => { // Dashboard range changed, write code to refresh your values dispatch(showNotification({ message: `Period updated to ${newRange.startDate} to ${newRange.endDate}`, status: 1 })) } return ( <> {/** ---------------------- Select Period Content ------------------------- */} {/** ---------------------- Different stats content 1 ------------------------- */}
{ statsData.map((d, k) => { return ( ) }) }
{/** ---------------------- Different charts ------------------------- */}
{/** ---------------------- Different stats content 2 ------------------------- */}
{/** ---------------------- User source channels table ------------------------- */}
) } export default Dashboard