Replaced the dedicated /admin/subscriptions page with a redirect to the central admin panel’s subscriptions tab. Removed session checks, imports, and the AdminSubscriptionDashboard since routing and access are now handled centrally. This streamlines admin UX and keeps access control unified.
21 lines
494 B
TypeScript
21 lines
494 B
TypeScript
import type { Metadata } from "next";
|
|
import { redirect } from "next/navigation";
|
|
|
|
export async function generateMetadata(): Promise<Metadata> {
|
|
return {
|
|
title: "Assinaturas e Permissões",
|
|
description:
|
|
"Redirecionando para o painel administrativo centralizado.",
|
|
};
|
|
}
|
|
|
|
export default async function AdminSubscriptionsRedirect({
|
|
params,
|
|
}: {
|
|
params: Promise<{ locale: string }>;
|
|
}) {
|
|
const { locale } = await params;
|
|
redirect(`/${locale}/admin?tab=subscriptions`);
|
|
}
|
|
|