import { useState } from 'react'; import { Container, Group, Text } from '@mantine/core'; import classes from '@/styles/Header.module.css'; const links = [ { link: '/about', label: 'Features' }, { link: '/pricing', label: 'Pricing' }, { link: '/learn', label: 'Learn' }, { link: '/community', label: 'Community' }, ]; export default function Header() { const [active, setActive] = useState(links[0].link); const items = links.map((link) => ( { event.preventDefault(); setActive(link.link); }} > {link.label} )); return (
🕒 UptimeFlare
{items}
); }