55 lines
2.1 KiB
TypeScript
55 lines
2.1 KiB
TypeScript
import { X } from 'lucide-react'
|
|
import { Modal } from '@/components'
|
|
import { RENEGO_STATUS_LABEL } from '@/apis/negotiation/negotiation.type'
|
|
import type { ListItem } from '../types'
|
|
|
|
export interface RenegotiationMemoPopupProps {
|
|
target: ListItem
|
|
onClose: () => void
|
|
}
|
|
|
|
// 재협상 심사 결과의 담당자 메모 열람 팝업. 목록에는 상태 배지만 두고 메모 전문은 여기서 보여준다.
|
|
export function RenegotiationMemoPopup({ target, onClose }: RenegotiationMemoPopupProps) {
|
|
return (
|
|
<Modal onClose={onClose}>
|
|
<div className="w-full max-w-md overflow-hidden rounded-2xl border border-border bg-white shadow-xl animate-scale-in">
|
|
<div className="flex items-center justify-between border-b border-border p-5">
|
|
<div>
|
|
<h3 className="text-base font-bold text-neutral-90">
|
|
{RENEGO_STATUS_LABEL[target.renegotiationStatus] ?? '재협상 심사 결과'}
|
|
</h3>
|
|
<p className="mt-0.5 text-xs text-neutral-60">
|
|
{target.qt_number} · {target.item_name}
|
|
</p>
|
|
</div>
|
|
<button
|
|
type="button"
|
|
onClick={onClose}
|
|
aria-label="닫기"
|
|
className="flex size-8 items-center justify-center rounded-full text-neutral-60 hover:bg-neutral-10"
|
|
>
|
|
<X className="size-4" />
|
|
</button>
|
|
</div>
|
|
|
|
<div className="p-5">
|
|
<p className="text-sm font-semibold text-neutral-80">담당자 메모</p>
|
|
<p className="mt-1.5 max-h-64 overflow-y-auto whitespace-pre-wrap break-keep rounded-xl bg-neutral-10 p-3 text-sm leading-relaxed text-neutral-80">
|
|
{target.renegotiationMemo}
|
|
</p>
|
|
</div>
|
|
|
|
<div className="border-t border-border p-5">
|
|
<button
|
|
type="button"
|
|
onClick={onClose}
|
|
className="w-full rounded-xl bg-brand-600 py-3 text-sm font-bold text-white shadow-sm transition-all hover:bg-brand-700 active:scale-[0.98]"
|
|
>
|
|
확인
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</Modal>
|
|
)
|
|
}
|