import type { RouteSearchParams } from "@/router/routes";

import { ProfileScreen } from "./profile-screen";

export default async function ProfilePage({
  searchParams,
}: {
  searchParams: Promise<RouteSearchParams>;
}) {
  const query = await searchParams;
  return <ProfileScreen returnTo={query.returnTo} />;
}
