import { Check } from 'lucide-react' import { cn } from '@/lib' import { useChatStore } from '@/features/chat/stores/useChatStore' import { STEPS } from '@/features/chat/lib/negoSteps' // 모바일 전용: 협상절차를 채팅 상단에 가로 스텝바로 항상 표시한다. (데스크톱은 우측 패널 사용) export function MobileStepBar() { const chats = useChatStore((s) => s.messages) const currentStep = chats[chats.length - 1]?.display_step || STEPS[0].name const idx = Math.max( 0, STEPS.findIndex((s) => s.name === currentStep), ) return (
{STEPS.map((step, i) => { const done = i < idx const current = i === idx return (
{done ? : i + 1}
{i < STEPS.length - 1 && (
)}
) })}

{idx + 1}. {STEPS[idx].name} {STEPS[idx].desc}

) }