import { button as buttonStyle, container, footer, h1, logo, main } from '../css/styles';
import {
Body,
Container,
Head,
Html,
Row,
Section,
Text,
} from 'react-email';
import * as React from 'react';
interface MailBodyProps {
children: React.ReactNode;
}
export function MailBody({ children }: MailBodyProps) {
return (
{children}
);
}
export function MailHeader() {
return (
);
}
interface EmailButtonProps {
href: string;
children: React.ReactNode;
}
export function EmailButton({ href, children }: EmailButtonProps) {
return (
);
}
export function MailFooter() {
const brandName = process.env.BRAND_NAME || 'AcadeDoc';
return (
© {new Date().getFullYear()} {brandName}, All Rights Reserved
);
}
export function getGreetingName(name?: string): string {
return name?.split(' ')[0] || 'there';
}