import { Check, ChevronDown } from 'lucide-react' import { cn } from '@/lib' import { useChatStore } from '@/features/chat/stores/useChatStore' import { STEPS } from '@/features/chat/lib/negoSteps' interface Props { isOpen: boolean setIsOpen: (isOpen: boolean) => void } export function NegoStep({ isOpen, setIsOpen }: Props) { const chats = useChatStore((s) => s.messages) const currentStep = chats[chats.length - 1]?.display_step || '서비스안내' const currentIndex = Math.max( 0, STEPS.findIndex((s) => s.name === currentStep), ) return (
{isOpen && (
{/* 세로 레일 */} {STEPS.map((step, i) => { const done = i < currentIndex const current = i === currentIndex return (
{done ? : i + 1}

{step.name}

{step.desc}

) })}
)}
) }