'use client' import { useState } from 'react' import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs' import { Button } from '@/components/ui/button' import { QrCode, 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' 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 (