import DashboardEvents from '@/components/dashboard/DashboardEvents' import DashboardGuestBook from '@/components/dashboard/DashboardGuestBook' import { queries } from '@/lib/queries' import React from 'react' export default async function DashboardPage() { const events = await queries.fetchQuickViewEvents(); const guestBookData = await queries.fetchGuestBookEntries({ takeOnlyRecent: 5 }); const guestBookEntries = Array.isArray(guestBookData) ? guestBookData : guestBookData.entries; 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 => ( ))}
*/}
) }