All files / components/Navbar/GlobalFooter GlobalFooter.tsx

100% Statements 4/4
100% Branches 0/0
100% Functions 2/2
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44        90x                                   90x 140x                     420x                  
'use client'
import { routes } from '../../../services/routes/routes'
import { NavbarLink } from '../NavbarLink/NavbarLink'
 
const footerLinks = [
	{
		title: 'FAQ',
		href: routes.misc.faq.index,
	},
	{
		title: 'Impressum',
		href: routes.misc.imprint,
	},
	{
		title: 'Datenschutz',
		href: routes.misc.privacy,
	},
]
 
/**
 * Display Footer with copyright and legal links.
 */
export const GlobalFooter: React.FC = () => {
	return (
		<footer className="mt-auto bg-yellow-400">
			<div className="container my-5 flex flex-col md:flex-row">
				<div className="mb-3 flex w-full items-center justify-between md:mb-0">
					<span className="font-semibold">
						Siebtes Leben &copy; {new Date().getFullYear()} Alle Rechte vorbehalten.
					</span>
				</div>
 
				<ul className="flex flex-col gap-3 md:flex-row">
					{footerLinks.map((link) => (
						<li key={link.title}>
							<NavbarLink href={link.href}>{link.title}</NavbarLink>
						</li>
					))}
				</ul>
			</div>
		</footer>
	)
}