import { Body, Column, Container, Head, Heading, Html, Img, Link, Preview, Row, Section, Tailwind, Text, } from "@react-email/components"; import twConfig from "../tailwind.config.js"; export const baseUrl = "https://cdn.webrecorder.net/email-assets"; interface TemplateProps { preview: string; title: React.ReactNode; children?: React.ReactNode; disclaimer?: React.ReactNode; linky?: | { version: "hello" | "concerned" | "happy"; caption: React.ReactNode; } | false; } export const Template = ({ preview, title, children, disclaimer, linky = { version: "hello", caption: ( <> Linky is glad
to see you! ), }, }: TemplateProps) => { return ( {preview}
Browsertrix
{title} {children} {disclaimer}
Webrecorder Webrecorder Web archiving for all {linky && ( Linky waves hello! {linky.caption} )}
); };