Files
twenty_crm/packages/twenty-emails/src/components/Link.tsx

29 lines
530 B
TypeScript

import { Link as EmailLink } from '@react-email/components';
import { ReactNode } from 'react';
import { emailTheme } from 'src/common-style';
const linkStyle = {
textDecoration: 'underline',
};
type LinkProps = {
value: ReactNode;
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>
);
};