Files
o2o-negosium-original/frontend/src/features/chat/components/popup/ServiceGuidePopup.tsx
T

30 lines
1.1 KiB
TypeScript

import { X } from 'lucide-react'
import { Modal } from '@/components'
import { cn, interactive } from '@/lib'
import { GuideContent, GuideContactBox } from './GuideContent'
// 유의사항 및 이용방법 팝업 (메뉴 버튼으로 여는 수동형). X 버튼 · 배경 클릭 · ESC 로 닫는다.
export function ServiceGuidePopup({ onClose }: { onClose: () => void }) {
return (
<Modal onClose={onClose}>
<div className="m-4 flex max-h-[90vh] w-full max-w-[720px] flex-col items-end gap-4 overflow-y-auto rounded-2xl border border-border bg-white px-6 pb-10 pt-6 shadow-xl animate-scale-in sm:px-12">
<button
type="button"
aria-label="닫기"
onClick={onClose}
className={cn(
'flex size-9 flex-shrink-0 items-center justify-center rounded-full bg-neutral-10 text-neutral-70 hover:bg-neutral-20',
interactive,
)}
>
<X size={20} />
</button>
<div className="flex w-full flex-col gap-6">
<GuideContent />
<GuideContactBox />
</div>
</div>
</Modal>
)
}