import { redirect } from "next/navigation";

import { getWorkspaceHref } from "@/modules/shared/lib/workspace-routing";

type ScopedAppIndexPageProps = {
  params: Promise<{
    organizationSlug: string;
  }>;
};

export default async function ScopedAppIndexPage({ params }: ScopedAppIndexPageProps): Promise<never> {
  const { organizationSlug } = await params;
  redirect(getWorkspaceHref(organizationSlug, "/dashboard"));
}
