import XNode from "@web-atoms/core/dist/core/XNode"; import { IStyleDeclaration } from "@web-atoms/core/dist/web/styles/IStyleDeclaration"; import TextBox from "./TextBox"; const footerStyle: IStyleDeclaration = { margin: "10px 0 10px", borderTop: "solid 1px orange", width: "100%" }; const linkStyle: IStyleDeclaration = { textDecoration: "underline", textAlign: "right" }; export interface IEmailFooter { unsubscribeLink?: string; trackUrl?: string; poweredBy?: string; poweredByLink?: string; refID?: string; } export default function EmailFooter({ unsubscribeLink, trackUrl, refID, poweredBy = "Powered by Web Atoms", poweredByLink = "https://www.webatoms.in/", ... a }: IEmailFooter): XNode[] { return
{unsubscribeLink ? Unsubscribe : ""} { poweredBy && {poweredBy}}
{trackUrl ? none : tracking} { refID &&
{refID}
}
; }