import { Container, Group, Text } from '@mantine/core'; import classes from '@/styles/Header.module.css'; import config from '@/uptime.config'; export default function Header() { const linkToElement = (link: { label: string; link: string; highlight?: boolean; }) => { return ( {link.label} ) } return (
🕒 UptimeFlare
{config.page.links.map(linkToElement)} {config.page.links.filter(link => link.highlight).map(linkToElement)}
); }