The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
import { Hr, Link, Tailwind, Text } from "@react-email/components";
export function Footer({
email,
marketing,
unsubscribeUrl = "https://app.dub.co/account/settings",
notificationSettingsUrl,
}: {
email: string;
marketing?: boolean;
unsubscribeUrl?: string;
notificationSettingsUrl?: string;
}) {
return (
<Tailwind>
<Hr className="mx-0 my-6 w-full border border-neutral-200" />
<Text className="text-[12px] leading-6 text-neutral-500">
This email was intended for <span className="text-black">{email}</span>.
If you were not expecting this email, you can ignore this email. If you
are concerned about your account's safety, please{" "}
<Link
className="text-neutral-700 underline"
href="https://dub.co/support"
>
reach out to let us know
</Link>
.
</Text>
{(marketing || notificationSettingsUrl) && (
<Text className="text-[12px] leading-6 text-neutral-500">
Don't want to get these emails?{" "}
<Link
className="text-neutral-700 underline"
href={marketing ? unsubscribeUrl : notificationSettingsUrl}
>
{marketing
? "Manage your email preferences"
: "Adjust your notification settings"}
</Link>
</Text>
)}
<Text className="text-[12px] text-neutral-500">
Dub Technologies, Inc.
<br />
2261 Market Street STE 5906
<br />
San Francisco, CA 941114
</Text>
</Tailwind>
);
}