Files
twenty_crm/packages/twenty-emails/src/components/Link.tsx
Nabhag Motivaras 7eec64b6e0 have footer on emails (#11300)
# ISSUE 

- Closes #9622

---------

Co-authored-by: Félix Malfait <felix@twenty.com>
2025-04-03 14:26:19 +02:00

28 lines
522 B
TypeScript

import { Link as EmailLink } from '@react-email/components';
import { emailTheme } from 'src/common-style';
const linkStyle = {
textDecoration: 'underline',
};
type LinkProps = {
value: JSX.Element | JSX.Element[] | string;
href: string;
color?: string;
};
export const Link = ({ value, href, color }: LinkProps) => {
return (
<EmailLink
href={href}
style={{
...linkStyle,
color: color ?? emailTheme.font.colors.tertiary,
}}
>
{value}
</EmailLink>
);
};