'use client'; import * as React from 'react'; import GetAllLessonCategoriesCount from '@/db/LessonCategories/GetAllCount'; import GetAllLessonTypesCount from '@/db/LessonTypes/GetAllCount'; import { GetAllUsersCount } from '@/db/Users/GetAllCount'; import Box from '@mui/material/Box'; import Button from '@mui/material/Button'; import Stack from '@mui/material/Stack'; import Typography from '@mui/material/Typography'; import Grid from '@mui/material/Unstable_Grid2'; import { ArrowRight as ArrowRightIcon } from '@phosphor-icons/react/dist/ssr/ArrowRight'; import { Briefcase as BriefcaseIcon } from '@phosphor-icons/react/dist/ssr/Briefcase'; import { FileCode as FileCodeIcon } from '@phosphor-icons/react/dist/ssr/FileCode'; import { Info as InfoIcon } from '@phosphor-icons/react/dist/ssr/Info'; // import type { Metadata } from 'next'; import { ListChecks as ListChecksIcon } from '@phosphor-icons/react/dist/ssr/ListChecks'; import { Plus as PlusIcon } from '@phosphor-icons/react/dist/ssr/Plus'; import { useTranslation } from 'react-i18next'; // import { config } from '@/config'; import { AppChat } from '@/components/dashboard/overview/app-chat'; import { AppLimits } from '@/components/dashboard/overview/app-limits'; import { AppUsage } from '@/components/dashboard/overview/app-usage'; import { Events } from '@/components/dashboard/overview/events'; import { HelperWidget } from '@/components/dashboard/overview/helper-widget'; import { Subscriptions } from '@/components/dashboard/overview/subscriptions'; import { Summary } from '@/components/dashboard/overview/summary'; import ActiveUserCount from '@/components/dashboard/overview/summary/ActiveUserCount'; import { events as SampleEvents } from './SampleEvents'; import { messages as SampleMessages } from './SampleMessages'; import { SamplesubScriptions } from './SamplesubScriptions'; export default function Page(): React.JSX.Element { const { t } = useTranslation(); const [lessonTypesCount, setLessonTypesCount] = React.useState(0); const [lessonCategoriesCount, setLessonCategoriesCount] = React.useState(0); const [usersCount, setUsersCount] = React.useState(0); async function fetchAllCount(): Promise { setLessonTypesCount(await GetAllLessonTypesCount()); setLessonCategoriesCount(await GetAllLessonCategoriesCount()); setUsersCount(await GetAllUsersCount()); } React.useEffect(() => { void fetchAllCount(); }, []); return ( {t('Overview')}
} size="small" > {t('Search jobs')} } description={t('Search for jobs that match your skills and apply to them directly.')} icon={BriefcaseIcon} label={t('Jobs')} title={t('Find your dream job')} /> } size="small" > {t('Help center')} } description={t('Find answers to your questions and get in touch with our team.')} icon={InfoIcon} label={t('Help center')} title={t('Need help figuring things out?')} /> } size="small" > {t('Documentation')} } description={t('Learn how to get started with our product and make the most of it.')} icon={FileCodeIcon} label={t('Documentation')} title={t('Explore documentation')} /> ); }