import { SetPasswordCard } from '../../../components/set-password-card';
import { fetchInvitation } from '../../../lib/api';

type Props = {
  params: Promise<{ token: string }>;
};

export default async function InvitePage({ params }: Props) {
  const { token } = await params;
  const invitation = await fetchInvitation(token);

  return <SetPasswordCard token={token} invitation={invitation} />;
}
