import { redirect } from "next/navigation";

import { customerUrl } from "@/lib/tenant";

type PageProps = {
  params: Promise<{ tenant: string }>;
};

/** Legacy path — widget config now lives under Settings → Dashboard (Configure drawers). */
export default async function AssetWidgetSettingsPage({ params }: Readonly<PageProps>) {
  const { tenant } = await params;
  redirect(customerUrl(tenant, "/settings?section=dashboard"));
}
