/* eslint-disable @next/next/no-head-element */ import BaseTable from "./BaseTable"; import EmailBodyLogo from "./EmailBodyLogo"; import EmailHead from "./EmailHead"; import EmailScheduledBodyHeaderContent from "./EmailScheduledBodyHeaderContent"; import EmailSchedulingBodyDivider from "./EmailSchedulingBodyDivider"; import EmailSchedulingBodyHeader, { BodyHeadType } from "./EmailSchedulingBodyHeader"; import RawHtml from "./RawHtml"; import Row from "./Row"; const Html = (props: { children: React.ReactNode }) => ( <> {props.children} ); export const V2BaseEmailHtml = (props: { children: React.ReactNode; callToAction?: React.ReactNode; subject: string; title?: string; subtitle?: React.ReactNode; headerType?: BodyHeadType; }) => { return (
{props.headerType && } {props.title && } {(props.headerType || props.title || props.subtitle) && }
`} />
`} />
`} />
{props.callToAction && }
`} />
{props.children}
`} />
)} ); };
`} /> {props.callToAction && (
{props.callToAction}