Files
tuono/apps/documentation/src/components/navbar/navbar.tsx
T

27 lines
693 B
TypeScript
Raw Normal View History

import type { JSX } from 'react'
2024-07-27 11:33:34 +02:00
import { AppShell, Burger, Button, Flex } from '@mantine/core'
2024-12-03 19:38:58 +01:00
import { Link } from 'tuono'
2024-07-27 11:33:34 +02:00
import Actions from './actions'
interface NavbarProps {
opened: boolean
toggle: () => void
}
export default function Navbar({ opened, toggle }: NavbarProps): JSX.Element {
return (
<AppShell.Header p="sm">
<Flex justify="space-between">
2024-08-14 14:45:47 +02:00
<Button component={Link} href="/" variant="transparent" p={0} fz={28}>
Tuono
</Button>
2024-07-27 11:33:34 +02:00
<Flex align="center" gap={8}>
2024-08-14 14:45:47 +02:00
<Actions />
2024-12-03 19:38:58 +01:00
<Burger opened={opened} onClick={toggle} hiddenFrom="sm" size="sm" />
2024-07-27 11:33:34 +02:00
</Flex>
</Flex>
</AppShell.Header>
)
}