"use client"; import Link from "next/link"; import { AuthGuard } from "@/components/AuthGuard"; import { PageHeader, Card, CardContent, Button, LoadingState } from "@/components/ds"; import { SPORTS_CENTER_PORTALS } from "@/modules/sports-center/constants/portals"; import { useQuery } from "@tanstack/react-query"; import { sportsCenterApi } from "@/modules/sports-center/services/sports-center-api"; import { useTenantId } from "@/hooks/useTenantId"; export function SportsCenterHub() { return ( ); } function SportsCenterHubInner() { const { tenantId } = useTenantId(); const healthQ = useQuery({ queryKey: ["sports-center", "health"], queryFn: () => sportsCenterApi.health(), }); if (healthQ.isLoading) return ; return (
v{healthQ.data.version} ) : null } />
{SPORTS_CENTER_PORTALS.map((portal) => { const Icon = portal.icon; return (

{portal.label}

{portal.description}

ورود ←
); })}
{!tenantId ? (

tenant فعال لازم است.

) : null}
); } export default SportsCenterHub;