) : (
}
title="No active events"
description="Check in at an event to start connecting with other dancers!"
action={
Browse Events
}
/>
)}
{/* Recording Assignments Section */}
{eventsWithRecordings.length > 0 && (
Recording Assignments
{eventsWithRecordings.map((event) => (
))}
)}
{/* Active Matches Section */}
Active Matches
View all
{activeMatches?.length > 0 ? (
{activeMatches.map((match) => (
))}
) : (
}
title="No active matches"
description="Join an event chat and send match requests to start collaborating!"
/>
)}
{/* Match Requests Section */}
{(hasIncoming || hasOutgoing) && (
Match Requests
{/* Incoming Requests */}
{hasIncoming && (
Incoming ({matchRequests.incoming.length})
{matchRequests.incoming.map((request) => (
))}
)}
{/* Outgoing Requests */}
{hasOutgoing && (
Outgoing ({matchRequests.outgoing.length})
{matchRequests.outgoing.map((request) => (
))}
)}
)}
{/* Decline Confirmation Modal */}
{
setShowDeclineModal(false);
setMatchToProcess(null);
}}
onConfirm={confirmRejectMatch}
title="Decline Match Request"
message="Are you sure you want to decline this request? This action cannot be undone."
confirmText="Decline"
cancelText="Cancel"
isLoading={processingMatchId === matchToProcess}
loadingText="Declining..."
/>
{/* Cancel Confirmation Modal */}
{
setShowCancelModal(false);
setMatchToProcess(null);
}}
onConfirm={confirmCancelRequest}
title="Cancel Match Request"
message="Are you sure you want to cancel this request? This action cannot be undone."
confirmText="Cancel Request"
cancelText="Keep Request"
isLoading={processingMatchId === matchToProcess}
loadingText="Cancelling..."
/>
);
};
export default DashboardPage;