import { MemberCreateWizard } from '@kit/member-management/components'; import { createMemberServices } from '@kit/member-management/services'; import { getSupabaseServerClient } from '@kit/supabase/server-client'; import { AccountNotFound } from '~/components/account-not-found'; interface Props { params: Promise<{ account: string }>; } export default async function NewMemberPage({ params }: Props) { const { account } = await params; const client = getSupabaseServerClient(); const { data: acct } = await client .from('accounts') .select('id') .eq('slug', account) .single(); if (!acct) return ; const { organization } = createMemberServices(client); const duesCategories = await organization.listDuesCategories(acct.id); return ( ) => ({ id: String(c.id), name: String(c.name), amount: Number(c.amount ?? 0), }), )} /> ); }