style: added shadcn-ui

This commit is contained in:
Riccardo
2023-12-05 20:13:29 +01:00
parent 1b0919a460
commit 78de374cba
45 changed files with 1463 additions and 1340 deletions

View File

@@ -1,9 +1,13 @@
import { Resend } from 'resend';
type EmailTemplate = {
subject: string;
template: JSX.Element;
};
export async function sendEmail(
to: string[],
subject: string,
template: JSX.Element
{ subject, template }: EmailTemplate
) {
const resend = new Resend(process.env.RESEND_KEY);
@@ -21,4 +25,6 @@ export async function sendEmail(
} catch (error) {
console.log(error);
}
console.log('Email sent', subject, to.length);
}