import { Container, Group } from '@mantine/core' import classes from '@/styles/Header.module.css' import { pageConfig } from '@/uptime.config' import { PageConfigLink } from '@/types/config' import { useTranslation } from 'react-i18next' // OSG brand mark — same two-dot "connect" glyph as the wordmark on // openshopgraph.org (BaseLayout.astro .top-brand .mark svg). function OsgMark() { return ( ) } export default function Header({ style }: { style?: React.CSSProperties }) { const { t } = useTranslation('common') const linkToElement = (link: PageConfigLink, i: number) => { return ( {link.label} ) } const links = [{ label: t('Incidents'), link: '/incidents' }, ...(pageConfig.links || [])] return (
OpenShopGraph  Status
{links?.map(linkToElement)} {links?.filter((link) => link.highlight || link.link.startsWith('/')).map(linkToElement)}
) }