-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenuList.tsx
More file actions
31 lines (27 loc) · 804 Bytes
/
MenuList.tsx
File metadata and controls
31 lines (27 loc) · 804 Bytes
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
"use client";
import Link from "next/link";
import { VStack } from "@/components/ui/Stack";
import { MENU_LIST } from "../../_constants";
import * as styles from "./MenuList.css";
export const MenuList = () => {
return (
<>
<VStack as='ul' gap={8} className={styles.wrapper}>
{MENU_LIST.map(menu => (
<li key={menu.id} className={styles.list}>
{menu.type === "link" ? (
<Link href={menu.link} className={styles.menuItem}>
{menu.label}
</Link>
) : (
<button type='button' className={styles.menuItem}>
{menu.label}
</button>
)}
</li>
))}
</VStack>
{/* TODO: 로그아웃시 나타날 모달 연결 */}
</>
);
};