// frontend/components/inbox/CaptureRow.tsx "use client"; import { Icon } from "@/components/Icon"; import type { IconName } from "@/components/icons/paths"; import type { UiInboxItem } from "@/lib/types"; import ReasonLine from "./ReasonLine"; import RouteChips from "./RouteChips"; export default function CaptureRow({ item: c, onConfirm, onReType, }: { item: UiInboxItem; onConfirm: (id: string) => void; onReType: (id: string) => void; }) { const kindIcon: IconName = c.kind === "voice" ? "mic" : c.kind === "image" ? "image" : "pen"; const canAct = c.status === "classified"; // 원본의 new(분류 완료, 액션 가능) return (
{c.raw}
{c.status === "thinking" ? (
아리가 분류하고 있어요
) : c.status === "error" ? (
분류에 실패했어요.{" "}
) : c.classification ? ( <> onReType(c.id)} /> {canAct && (
)} ) : null}
{c.status === "confirmed" ? ( ) : ( c.time )}
); }