96 |
110 |
119 | {!sm && (
120 | <>
121 |
122 | {getItem({
123 | url: '',
124 | title: 'Install app',
125 | icon:
126 | })}
127 | {getItem({
128 | url: '',
129 | title: isCollapsed ? 'Expand' : 'Collapse',
130 | icon: isCollapsed ? : ,
131 | onClick: toggleNavbar
132 | })}
133 |
134 |
135 |
136 |
137 | >
138 | )}
139 |
140 | )
141 | }
142 |
143 | export default Navbar
--------------------------------------------------------------------------------
/src/components/Navbar/NavbarItem.tsx:
--------------------------------------------------------------------------------
1 | import { createStyles } from '@mantine/core'
2 | import React, { FunctionComponent, ReactNode } from 'react'
3 |
4 | const useStyles = createStyles((theme, { active }: { active: boolean }) => ({
5 | wrapper: {
6 | color: active ? '#fff' : '#b9b9b9',
7 | height: '40px',
8 | transition: 'color 150ms ease-in-out',
9 | '&:hover': {
10 | color: '#fff'
11 | }
12 | }
13 | }))
14 |
15 | type NavbarItemProps = {
16 | active: boolean;
17 | }
18 |
19 | const NavbarItem: FunctionComponent