// frontend/components/inbox/RouteChips.tsx
"use client";
import { Icon } from "@/components/Icon";
import { SPHERE, TYPE_ICON, TYPE_LABEL } from "@/lib/inbox/presentation";
import type { Classification } from "@/lib/types";
export default function RouteChips({
r,
editable,
onReType,
}: {
r: Classification;
editable: boolean;
onReType: () => void;
}) {
return (
{/* 타입 칩: 클릭 시 다르게 분류(편집 가능할 때만) */}
{/* sphere 칩 (고정색) */}
{SPHERE[r.sphere].label}
{/* proj 칩 (동적 tone) */}
{r.proj_label}
{r.due_text && (
{r.due_text}
)}
{r.when_text && (
{r.when_text}
)}
{r.extra && (
{r.extra}
)}
);
}