mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-21 13:09:16 +00:00
33 lines
851 B
TypeScript
33 lines
851 B
TypeScript
import { component$, useStyles$ } from '@builder.io/qwik'
|
|
import { useLocation } from '@builder.io/qwik-city'
|
|
import { QwikLogo } from '../icons/qwik'
|
|
import styles from './header.css?inline'
|
|
|
|
export default component$(() => {
|
|
useStyles$(styles)
|
|
|
|
const { pathname } = useLocation()
|
|
|
|
return (
|
|
<header>
|
|
<a class="logo" href="/">
|
|
<QwikLogo />
|
|
</a>
|
|
<nav>
|
|
<a
|
|
href="/docs"
|
|
class={{ active: pathname.startsWith('/docs') }}
|
|
>
|
|
Docs
|
|
</a>
|
|
<a
|
|
href="/about-us"
|
|
class={{ active: pathname.startsWith('/about-us') }}
|
|
>
|
|
About Us
|
|
</a>
|
|
</nav>
|
|
</header>
|
|
)
|
|
})
|