From ee04742d1f0645908baa30e47845126c28848f50 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Tue, 3 May 2022 16:53:55 +0200 Subject: chore: add a CV page --- src/components/atoms/links/link.tsx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'src/components/atoms/links/link.tsx') diff --git a/src/components/atoms/links/link.tsx b/src/components/atoms/links/link.tsx index 674c07b..c8ba273 100644 --- a/src/components/atoms/links/link.tsx +++ b/src/components/atoms/links/link.tsx @@ -11,6 +11,10 @@ export type LinkProps = { * Set additional classnames to the link. */ className?: string; + /** + * True if it is a download link. Default: false. + */ + download?: boolean; /** * True if it is an external link. Default: false. */ @@ -33,21 +37,29 @@ export type LinkProps = { const Link: FC = ({ children, className = '', + download = false, + external = false, href, lang, - external = false, }) => { + const downloadClass = download ? styles['link--download'] : ''; + return external ? ( {children} ) : ( - {children} + + {children} + ); }; -- cgit v1.2.3