mirror of
https://github.com/fastapi/full-stack-fastapi-template.git
synced 2026-09-24 06:30:19 +00:00
16 lines
364 B
TypeScript
16 lines
364 B
TypeScript
import { Link as EmailLink } from "@react-email/components"
|
|
|
|
type LinkProps = React.PropsWithChildren & { href: string }
|
|
|
|
export const Link = ({ children, href }: LinkProps) => (
|
|
<EmailLink href={href} style={linkStyle}>
|
|
{children}
|
|
</EmailLink>
|
|
)
|
|
|
|
const linkStyle = {
|
|
color: "#00695c",
|
|
textDecoration: "underline",
|
|
wordBreak: "break-all" as const,
|
|
}
|