Skip to content

Commit 6bf4b1b

Browse files
committed
WIP: create navbar mock
1 parent 32f8358 commit 6bf4b1b

File tree

2 files changed

+56
-2
lines changed

2 files changed

+56
-2
lines changed

apps/web/src/features/bookEdit/components/Aside/Aside.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
22

33
import styles from './Aside.module.css'
44
import { bindClassNames } from '@/lib/styles/bindClassNames'
5-
// import { Navbar } from '@packages/nextra-theme-docs'
5+
import { Navbar } from '@packages/nextra-theme-docs'
66

77
const cx = bindClassNames(styles)
88

99
function Aside() {
10-
return <div className={cx('block')}>{/* <Navbar flatDirectories={} /> */}</div>
10+
return (
11+
<div className={cx('block')}>
12+
<Navbar flatDirectories={[]} items={[]} />
13+
</div>
14+
)
1115
}
1216

1317
export default Aside
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// import { Item, NavbarFlatDirectories, NavbarItems, PageItem } from '@packages/nextra-theme-docs'
2+
3+
// export const navbarFlatDirectories: NavbarFlatDirectories[] = [
4+
// {
5+
// title: 'Introduction',
6+
// kind: 'MdxPage',
7+
// name: 'index',
8+
// route: '/',
9+
// type: 'doc',
10+
// },
11+
// {
12+
// title: 'Another Page',
13+
// kind: 'MdxPage',
14+
// name: 'another',
15+
// route: '/another',
16+
// type: 'doc',
17+
// },
18+
// {
19+
// title: 'Satori',
20+
// kind: 'MdxPage',
21+
// name: 'satori',
22+
// route: '/advanced/satori',
23+
// type: 'doc',
24+
// },
25+
// {
26+
// title: 'Hi',
27+
// kind: 'MdxPage',
28+
// name: 'hi',
29+
// route: '/advanced/ hello/hi',
30+
// type: 'doc',
31+
// },
32+
// {
33+
// title: 'Balanced Client Driven Flexibility 6614ba2e52f87b67fc14427b',
34+
// kind: 'MdxPage',
35+
// name: 'Balanced_client-driven_flexibility_6614ba2e52f87b67fc14427b',
36+
// route: '/Balanced_client-driven_flexibility_6614ba2e52f87b67fc14427b',
37+
// type: 'doc',
38+
// },
39+
// ]
40+
41+
// export const navbarItems: NavbarItems[] = [
42+
// {
43+
// name: 'contact',
44+
// route: '',
45+
// title: 'Contact ↗',
46+
// type: 'page',
47+
// href: 'https://twitter.com/shuding_',
48+
// newWindow: true,
49+
// },
50+
// ]

0 commit comments

Comments
 (0)