The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { type JSX } from 'react';
import { Link as EmailLink } from 'react-email';
import { canvasTheme } 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 ?? canvasTheme.font.colors.tertiary,
}}
>
{value}
</EmailLink>
);
};