forked from rocicorp/zero-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocs-menu.tsx
More file actions
46 lines (44 loc) · 1.27 KB
/
docs-menu.tsx
File metadata and controls
46 lines (44 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import {ROUTES} from '@/lib/routes-config';
import SubLink from './sublink';
import Link from 'next/link';
export default function DocsMenu({isSheet = false}) {
return (
<div className="flex flex-col gap-12 mt-5 pr-2 pb-6">
{ROUTES.map((item, index) => {
const modifiedItems = {
...item,
href: `/docs${item.href}`,
level: 0,
isSheet,
};
return <SubLink key={item.title + index} {...modifiedItems} />;
})}
<div className="footer-container">
<p className="copyright">
Made by{' '}
<Link href="https://rocicorp.dev" className="footer-text-link">
Rocicorp
</Link>
</p>
<div className="social-links">
<Link
href="https://github.com/rocicorp/hello-zero"
className="link-github"
></Link>
<Link
href="https://discord.rocicorp.dev"
className="link-discord"
></Link>
<Link
href="https://bsky.app/profile/zero.rocicorp.dev"
className="link-bluesky"
></Link>
<Link
href="https://x.com/rocicorp_zero"
className="link-twitter"
></Link>
</div>
</div>
</div>
);
}