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

import { SidebarScreen } from "./sidebar-screen";

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