import AddFirstGuestBookEntryClient from '@/components/AddFirstGuestBookEntryClient' import CreateEventClient from '@/components/CreateEventClient' import EventInfoQuickView from '@/components/EventInfoQuickView' import GuestBookQuickView from '@/components/GuestBookQuickView' import { queries } from '@/lib/queries' import Link from 'next/link' import React from 'react' export default async function DashboardPage() { const events = await queries.fetchEvents(); const guestBookEntries = await queries.fetchGuestBookEntries(5); return (

Your Events

{!events.length && <>You don't have any events yet. Create your first event.}
{events.map((item) => ( ))}
View all

Guest Book

View All
{!guestBookEntries.length && } {guestBookEntries.map(entry => ( ))}
) }