import { createClient } from "@/lib/supabase/server";
import { IssuesPanel } from "@/components/issues/issues-panel";

export default async function MasterIssuesPage() {
  const supabase = await createClient();
  const { data: leagues } = await supabase.from("leagues").select("id, name");

  return (
    <IssuesPanel leagues={leagues ?? []} asMaster />
  );
}
