Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-23 21:29:58 +00:00
co-authored by renee-png
parent 6e1ef08577
commit 6bb35f3692
6 changed files with 751 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import type { ComponentType } from 'react'
export interface TemplateEntry {
component: ComponentType<any>
subject: string | ((data: Record<string, any>) => string)
displayName?: string
previewData?: Record<string, any>
/** Fixed recipient — overrides caller-provided recipientEmail when set. */
to?: string
}
/**
* Template registry — maps template names to their React Email components.
* Import and register new templates here after creating them in this directory.
*
* Example:
* import { template as welcomeTemplate } from './welcome'
* // then add to TEMPLATES: 'welcome': welcomeTemplate
*/
export const TEMPLATES: Record<string, TemplateEntry> = {
// Add templates here as they are created, e.g.:
// 'welcome': welcomeTemplate,
}