Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
import React from "react";
import { Hr, Link, Section, Text } from "react-email";
export const Footer = ({
withAddress = false,
marketing = false,
footerText = "If you have any feedback or questions about this email, simply reply to it. I'd love to hear from you!",
}: {
withAddress?: boolean;
marketing?: boolean;
footerText?: string | React.ReactNode;
}) => {
if (marketing) {
return (
<>
<Hr className="mx-0 my-6 w-full border border-neutral-200" />
<Text className="text-[12px] leading-6 text-neutral-500">
We send out product update emails once a month – no spam, no nonsense.
Don't want to get these emails?{" "}
<Link
className="text-neutral-700 underline"
href="https://app.papermark.com/account/general"
>
Unsubscribe here.
</Link>
</Text>
<Text className="text-[12px] text-neutral-500">
Papermark, Inc.
<br />
1111B S Governors Ave #28117
<br />
Dover, DE 19904
</Text>
</>
);
}
return (
<>
<Hr />
<Section className="text-gray-400">
<Text className="text-xs">
© {new Date().getFullYear()} Papermark, Inc. All rights reserved.{" "}
{withAddress && (
<>
<br />
1111B S Governors Ave #28117, Dover, DE 19904
</>
)}
</Text>
<Text className="text-xs">{footerText}</Text>
</Section>
</>
);
};