'use client'; import { Button } from '@/ui/Button'; import { Icon } from '@/ui/Icon'; import { Link } from '@/ui/Link'; import { Stack } from '@/ui/Stack'; import { Surface } from '@/ui/Surface'; import { Text } from '@/ui/Text'; import { AlertTriangle, DollarSign, Shield, Wallet } from 'lucide-react'; interface AdminQuickViewWidgetsProps { leagueId: string; walletBalance?: number; pendingProtestsCount?: number; pendingJoinRequestsCount?: number; isOwnerOrAdmin: boolean; } export function AdminQuickViewWidgets({ leagueId, walletBalance = 0, pendingProtestsCount = 0, pendingJoinRequestsCount = 0, isOwnerOrAdmin, }: AdminQuickViewWidgetsProps) { if (!isOwnerOrAdmin) { return null; } return ( {/* Wallet Preview */} Wallet Balance ${walletBalance.toFixed(2)} {/* Stewarding Quick-View */} Stewarding Queue {pendingProtestsCount} {pendingProtestsCount > 0 ? ( ) : ( No pending protests )} {/* Join Requests Preview */} {pendingJoinRequestsCount > 0 && ( Join Requests {pendingJoinRequestsCount} )} ); }