import Link from "next/link"; import { db } from "@/lib/db"; import { getSettings } from "@/lib/settings"; import { NewsletterForm } from "./NewsletterForm"; export async function Footer() { const [settings, categories, pages, payments] = await Promise.all([ getSettings(), db.category.findMany({ where: { active: true, parentId: null }, orderBy: { sort: "asc" }, take: 5 }), db.page.findMany({ where: { published: true, NOT: { showInFooter: "" } }, orderBy: { sort: "asc" } }), db.paymentMethod.findMany({ where: { enabled: true }, orderBy: { sort: "asc" } }), ]); const s = settings.general; const a = settings.appearance; const service = pages.filter((p) => p.showInFooter === "service"); const company = pages.filter((p) => p.showInFooter === "company"); const legal = pages.filter((p) => p.showInFooter === "legal"); return ( ); }