251121_01_ENH : 로그인 및 인증 저장, api통신 시 자동으로 accessKey 붙게 조치
This commit is contained in:
25
src/config/menu.types.ts
Normal file
25
src/config/menu.types.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import type { LucideIcon } from "lucide-react";
|
||||
|
||||
export type TopMenuItem = {
|
||||
id: string;
|
||||
label: string;
|
||||
path: string;
|
||||
/** 현재 경로가 이 탭에 해당하는지 판별하는 함수 */
|
||||
match?: (pathname: string) => boolean;
|
||||
};
|
||||
|
||||
export type SideSubMenuItem = {
|
||||
id: string;
|
||||
label: string;
|
||||
path: string;
|
||||
};
|
||||
|
||||
export type SideMenuItem = {
|
||||
id: string;
|
||||
label: string;
|
||||
icon: LucideIcon;
|
||||
/** 단일 메뉴일 경우 path 사용 */
|
||||
path?: string;
|
||||
/** children이 있으면 2단 메뉴(접었다 펴는 타입) */
|
||||
children?: SideSubMenuItem[];
|
||||
};
|
||||
Reference in New Issue
Block a user