25 lines
866 B
TypeScript
25 lines
866 B
TypeScript
import { useState } from 'react'
|
|
import { ChevronRight } from 'lucide-react'
|
|
import { ServiceGuidePopup } from '@/features/chat/components/popup/ServiceGuidePopup'
|
|
|
|
// 유의사항 및 이용방법 — 클릭 시 안내 팝업을 연다.
|
|
export function Guide() {
|
|
const [isOpen, setIsOpen] = useState(false)
|
|
|
|
return (
|
|
<>
|
|
<button
|
|
type="button"
|
|
onClick={() => setIsOpen(true)}
|
|
className="flex w-full items-center justify-between border-b border-border pb-2 text-left transition-colors hover:border-neutral-40"
|
|
>
|
|
<span className="text-[11px] font-bold tracking-wide text-neutral-60 break-keep">
|
|
유의사항 및 이용방법
|
|
</span>
|
|
<ChevronRight size={16} className="text-neutral-50" />
|
|
</button>
|
|
{isOpen && <ServiceGuidePopup onClose={() => setIsOpen(false)} />}
|
|
</>
|
|
)
|
|
}
|