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 (45 loc) · 1.39 KB
/
docs-menu.tsx
File metadata and controls
46 lines (45 loc) · 1.39 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';
import {ModeToggle} from './theme-toggle';
import GithubLogo from './logos/Github';
import DiscordLogo from './logos/Discord';
import BlueskyLogo from './logos/Bluesky';
import TwitterLogo from './logos/Twitter';
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/mono#zero">
<GithubLogo />
</Link>
<Link href="https://discord.rocicorp.dev">
<DiscordLogo />
</Link>
<Link href="https://bsky.app/profile/zero.rocicorp.dev">
<BlueskyLogo />
</Link>
<Link href="https://x.com/zero__ms">
<TwitterLogo />
</Link>
</div>
</div>
</div>
);
}