You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
857 B
TypeScript
28 lines
857 B
TypeScript
// frontend/lib/inbox/presentation.ts — 분류 결과 → 화면 표현 매핑
|
|
import type { IconName } from "@/components/icons/paths";
|
|
import type { RouteType, Sphere } from "@/lib/types";
|
|
|
|
/** 원본 sinbox.jsx SPHERE */
|
|
export const SPHERE: Record<Sphere, { label: string; tone: string }> = {
|
|
work: { label: "업무", tone: "var(--blue)" },
|
|
life: { label: "개인", tone: "var(--green)" },
|
|
};
|
|
|
|
/** 원본 sinbox.jsx TYPE_ICON */
|
|
export const TYPE_ICON: Record<RouteType, IconName> = {
|
|
task: "check",
|
|
event: "cal",
|
|
idea: "brain",
|
|
};
|
|
|
|
export const TYPE_LABEL: Record<RouteType, string> = {
|
|
task: "작업",
|
|
event: "일정",
|
|
idea: "아이디어",
|
|
};
|
|
|
|
/** 원본 cycleType — 다르게 분류 시 다음 타입 */
|
|
export function nextType(t: RouteType): RouteType {
|
|
return ({ task: "event", event: "idea", idea: "task" } as const)[t];
|
|
}
|