/* 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 type { BodyHeadType } from "./EmailSchedulingBodyHeader"; import EmailSchedulingBodyHeader from "./EmailSchedulingBodyHeader"; import RawHtml from "./RawHtml"; import Row from "./Row"; const Html = (props: { children: React.ReactNode }) => ( <> {props.children} ); export const BaseEmailHtml = (props: { children: React.ReactNode; callToAction?: React.ReactNode; subject: string; title?: string; subtitle?: React.ReactNode | string; headerType?: BodyHeadType; hideLogo?: boolean; }) => { return (
{props.headerType && ( )} {props.title && ( )} {(props.headerType || props.title || props.subtitle) && ( )}
`} />
`} />
`} />
{props.callToAction && }
`} />
{props.children}
`} />
)} {!Boolean(props.hideLogo) && } ); };
`} /> {props.callToAction && (
{props.callToAction}