diff --git a/components/footer.tsx b/components/footer.tsx index 28320a3..a83654b 100644 --- a/components/footer.tsx +++ b/components/footer.tsx @@ -17,7 +17,10 @@ const legalLinks = [ ] export function Footer({ email }: { email?: string }) { - const repoLink = { label: 'Forgejo', href: 'https://kitux.de/forgejo/dschlueter/jamulix-homepage', icon: Github } + const socialLinks = [ + { label: 'Forgejo', href: 'https://kitux.de/forgejo/dschlueter/jamulix-homepage', icon: Github }, + { label: email ?? '[Emailadresse]', href: `mailto:${email ?? '[Emailadresse]'}`, icon: Mail }, + ] const currentYear = new Date().getFullYear() return ( @@ -45,25 +48,26 @@ export function Footer({ email }: { email?: string }) {

{/* Social links */} -
- - - {repoLink.label} - - - - - {email ?? '[Emailadresse]'} - +
+ {socialLinks.map((link) => { + const Icon = link.icon + return ( + + + {link.label} + {link.href.startsWith('http') && ( + + )} + + ) + })}