import { verifySession } from '@/lib/auth/dal'; import { fetchPointAccounts } from '@/lib/data/repositories/point-account-repository'; import { parsePointAccountQuery } from '@/lib/domain/point-account-query'; import { PointAccountList } from './_components/point-account-list'; export const dynamic = 'force-dynamic'; interface PageProps { searchParams: Promise>; } export default async function Page({ searchParams }: PageProps) { await verifySession(); const query = parsePointAccountQuery(await searchParams); const { items, totalCount } = await fetchPointAccounts(query); const totalPages = Math.max(1, Math.ceil(totalCount / query.pageSize)); const currentPage = Math.min(query.page, totalPages); return ( ); }