import { Effect } from 'effect' import { MailService } from '@voltro/plugin-mail' const execute = (input: { email: string; name: string }) => Effect.gen(function* () { const mail = yield* MailService const res = yield* mail.send({ to: input.email, template: 'welcome', props: { name: input.name }, }) return { id: res.id, provider: res.provider } }) export default execute