25 lines
674 B
TypeScript
25 lines
674 B
TypeScript
import EventDashboard from '@/components/events/EventDashboard'
|
|
import { queries } from '@/lib/queries'
|
|
import React from 'react'
|
|
|
|
export default async function SingleEventPage({ params }: { params: { eventId: string }}) {
|
|
const data = await queries.singleEvent(params.eventId)
|
|
|
|
return (
|
|
<>
|
|
<EventDashboard
|
|
event={data}
|
|
/>
|
|
{/* <div className=''>
|
|
|
|
{data ? (
|
|
// @ts-ignore
|
|
<EventInfoDisplay event={data} />
|
|
) : (
|
|
<p className="text-center text-gray-500 mt-10">Event not found.</p>
|
|
)}
|
|
</div> */}
|
|
</>
|
|
)
|
|
}
|