diff --git a/src/components/EmailLink.astro b/src/components/EmailLink.astro index a9bd7dc..775715e 100644 --- a/src/components/EmailLink.astro +++ b/src/components/EmailLink.astro @@ -4,23 +4,26 @@ import { Sprite } from 'astro-icon'; import { TextLink } from '../components'; export interface Props { + icon?: boolean; text?: string; } -const { text = 'Email', ...props } = Astro.props; +const { text = 'Email', icon = true, ...props } = Astro.props; --- {text} - - + { + icon && ( + + + ) + }