MCPcopy Index your code
hub / github.com/simstudioai/sim / renderUsageThresholdEmail

Function renderUsageThresholdEmail

apps/sim/components/emails/render.ts:120–138  ·  view source on GitHub ↗
(params: {
  userName?: string
  planName: string
  percentUsed: number
  currentUsage: number
  limit: number
  ctaLink: string
})

Source from the content-addressed store, hash-verified

118}
119
120export async function renderUsageThresholdEmail(params: {
121 userName?: string
122 planName: string
123 percentUsed: number
124 currentUsage: number
125 limit: number
126 ctaLink: string
127}): Promise<string> {
128 return await render(
129 UsageThresholdEmail({
130 userName: params.userName,
131 planName: params.planName,
132 percentUsed: params.percentUsed,
133 currentUsage: params.currentUsage,
134 limit: params.limit,
135 ctaLink: params.ctaLink,
136 })
137 )
138}
139
140export async function renderFreeTierUpgradeEmail(params: {
141 userName?: string

Callers 2

sendToFunction · 0.90
route.tsFile · 0.90

Calls 2

UsageThresholdEmailFunction · 0.90
renderFunction · 0.50

Tested by

no test coverage detected