import { Button } from "@/components/ui/button" import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card" import { Plus, Users } from "lucide-react" import Link from "next/link" import { getApiUrl } from "@/lib/api-config" async function getGroups() { try { const res = await fetch(`${getApiUrl()}/groups/`, { cache: 'no-store' }) if (!res.ok) return [] return res.json() } catch (e) { console.error(e) return [] } } export default async function GroupsPage() { const groups = await getGroups() return (
Join a group to connect with other fans.
{group.description || "No description"}