17 lines
543 B
TypeScript
17 lines
543 B
TypeScript
import { Button } from '@react-email/components';
|
|
|
|
export function EmailButton(
|
|
props: React.PropsWithChildren<{
|
|
href: string;
|
|
}>,
|
|
) {
|
|
return (
|
|
<Button
|
|
className="hover:bg-primary/90 inline-flex w-full items-center justify-center gap-1 rounded bg-[#16a249] py-3 text-center text-[16px] font-semibold whitespace-nowrap text-white no-underline shadow-xs transition-colors focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
|
|
href={props.href}
|
|
>
|
|
{props.children}
|
|
</Button>
|
|
);
|
|
}
|