import { connection } from "next/server"; import { CardsPage } from "@/features/cards/components/cards-page"; import { fetchAllCardsForUser } from "@/features/cards/queries"; import { getUserId } from "@/shared/lib/auth/server"; export default async function Page() { await connection(); const userId = await getUserId(); const { activeCards, archivedCards, accounts, logoOptions } = await fetchAllCardsForUser(userId); return (
); }