import * as z from 'zod'; import { defineEmail } from '../send'; import { getDefaultTemplate } from '../templates'; export const teacherStudentBuyRequestEmail = defineEmail({ id: 'teacherStudentBuyRequest', subject: 'Request to Join Course!', schema: z.object({ courseName: z.string().min(1), studentEmail: z.string().email(), studentFullname: z.string().min(1) }), render: (fields) => { const content = `
Hi amazing tutor,
A new student has requested to join a course you are teaching: "${fields.courseName}"
Student details
Name: ${fields.studentFullname}
Email: ${fields.studentEmail}