import { Button } from "@/components/ui/button" import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card" import { ArrowLeft, Calendar, MapPin, Music2 } from "lucide-react" import Link from "next/link" import { notFound } from "next/navigation" import { getApiUrl } from "@/lib/api-config" import { CommentSection } from "@/components/social/comment-section" import { EntityReviews } from "@/components/reviews/entity-reviews" import { SocialWrapper } from "@/components/social/social-wrapper" async function getPerformance(id: string) { try { const res = await fetch(`${getApiUrl()}/performances/${id}`, { cache: 'no-store' }) if (!res.ok) return null return res.json() } catch (e) { console.error(e) return null } } export default async function PerformanceDetailPage({ params }: { params: Promise<{ id: string }> }) { const { id } = await params const performance = await getPerformance(id) if (!performance) { notFound() } return (
{performance.notes}