A11yWatch/a11ywatch-core

View on GitHub
src/html/footer/footer.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { config } from "../../config";

interface MarketingFooterParams {
  userId: number;
  email?: string;
}

interface Footer {
  marketing(params: MarketingFooterParams): string;
}

const footer: Footer = {
  marketing: ({
    userId,
    email,
  }) => `<footer style="margin-top:30px; padding: 6px;">
  <a href="${config.DOMAIN}" target="_blank" style="font-size:12px">Visit A11yWatch</a>
  <br />
  <br />
  <br />
  <a href="${config.ROOT_URL}/api/unsubscribe-emails?id=${userId}&email=${email}" target="_blank" style="font-size:12px">Unsubscribe</a>
  <p style="margin-top:30px; font-weight: 100; text-align: center;">Powered by A11yWatch, LLC</p>
</footer>`,
};

export { footer };