import { notFound } from "next/navigation";

import { auth } from "@/config/auth";
import { ContactsExportPageView } from "@/modules/contacts/components/contacts-export-page-view";

export const metadata = {
  title: "Exportar Contatos | Newsletter Platform",
  description: "Exporte contatos filtrados para CSV e acesse o histórico de exportações",
};

export default async function ContactsExportPage() {
  const session = await auth();
  if (!session?.user?.id) {
    notFound();
  }

  return (
    <div className="w-full max-w-[1600px] mx-auto px-4 sm:px-6 lg:px-8 py-6 space-y-6">
      <ContactsExportPageView />
    </div>
  );
}
