'use client' import { useState } from 'react' import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs' import { Heart, UserCircle } from 'lucide-react' import CommunityAlert from './community-alert' import MainDashboard from './main-dashboard' import CommunityLinks from './community-links' import AccountSettings from './account-settings' import GenerateApiKey from './generate-api-key' import { useSession } from 'next-auth/react' import { JoinCommunityModal } from '@/components/shared/join-community-modal' import { ContributeModal } from '@/components/shared/contribute-modal' import UpgradeToProAlert from './upgrade-to-pro-alert' import VerifyEmailAlert from './verify-email-alert' export default function Dashboard({ children, }: { children?: React.ReactNode }) { const [currentTab, setCurrentTab] = useState('dashboard') const handleTabChange = (value: string) => { setCurrentTab(value) } const { data: session } = useSession() const welcomeMessage = new Date().getHours() < 12 ? 'Good morning' : new Date().getHours() < 18 ? 'Good afternoon' : 'Good evening' return (

{welcomeMessage}, {session?.user?.name}

Dashboard Community Account
) }