import { redirect } from "next/navigation";

import { getCurrentAuthContext } from "@/modules/core/server/auth";
import { getWorkspaceHref } from "@/modules/shared/lib/workspace-routing";

export default async function SettingsPage(): Promise<React.ReactElement> {
  const context = await getCurrentAuthContext();
  redirect(getWorkspaceHref(context?.organization?.slug, "/settings/users"));
}
