import { createEmailTemplate, deleteEmailTemplate, updateEmailTemplate, } from "@/actions/admin-email-templates"; import { prisma } from "@/lib/prisma"; export const dynamic = "force-dynamic"; export default async function AdminEmailTemplates() { let templates: Awaited> = []; try { templates = await prisma.emailTemplates.findMany({ orderBy: { name: "asc" } }); } catch { templates = []; } return (

Email Templates

Transactional email bodies. Use {"{{ placeholders }}"} in the body and list the available ones in the variables field (comma-separated).

New template