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

34 lines
757 B
TypeScript
Raw Normal View History

import type { JSX } from 'react'
2024-12-07 12:06:08 +01:00
import { AppShell, Box, 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 {
toggle: () => void
}
2024-12-07 12:06:08 +01:00
export default function Navbar({ toggle }: NavbarProps): JSX.Element {
2024-07-27 11:33:34 +02:00
return (
<AppShell.Header p="sm">
<Flex justify="space-between">
2024-12-07 12:06:08 +01:00
<Button
component={Link}
href="/"
variant="transparent"
p={0}
fz={28}
hiddenFrom="sm"
>
2024-08-14 14:45:47 +02:00
Tuono
</Button>
2024-12-07 12:06:08 +01:00
<Box />
2024-07-27 11:33:34 +02:00
<Flex align="center" gap={8}>
2024-08-14 14:45:47 +02:00
<Actions />
2024-12-07 12:06:08 +01:00
<Burger onClick={toggle} hiddenFrom="sm" size="sm" />
2024-07-27 11:33:34 +02:00
</Flex>
</Flex>
</AppShell.Header>
)
}