Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | import { Metadata } from 'next'; import { redirect } from 'next/navigation'; import { auth } from '@/lib/auth/auth'; import TicketListWrapper from './TicketListWrapper'; export const metadata: Metadata = { title: 'My Support Tickets | Elite Events', description: 'View and manage your support tickets.'}; export default async function TicketsPage() { const session = await auth(); if (!session?.user) { redirect('/signin?callbackUrl=/support/tickets'); } return ( <div className="max-w-4xl mx-auto px-4 py-8"> <h1 className="text-2xl font-bold text-gray-900 mb-6">My Support Tickets</h1> <TicketListWrapper /> </div> ); } |