import { useEffect, useState } from 'react'; import { PATHS } from '@/shared/constants/paths'; import { useLocation } from 'react-router'; import { useNavigate } from '@/shared/lib/hooks/use-navigate'; import { DetailPaymentInfoSection } from '@/entities/additional-service/ui/link-payment/detail/detail-payment-info-section'; import { HeaderType } from '@/entities/common/model/types'; import { IMAGE_ROOT } from '@/shared/constants/common'; import { useSetOnBack, useSetHeaderTitle, useSetHeaderType, useSetFooterMode } from '@/widgets/sub-layout/use-sub-layout'; import { DetailDeetsInfoSection } from '@/entities/additional-service/ui/link-payment/detail/detail-deets-Info-section'; import { overlay } from 'overlay-kit'; import { Dialog } from '@/shared/ui/dialogs/dialog'; export const LinkPaymentPendingDetailPage = () => { const { navigate } = useNavigate(); const location = useLocation(); const [transactionId, setTransactionId] = useState(location?.state?.transactionId || ''); const [paymentInfo, setPaymentInfo] = useState(); const [deetsInfo, setDeetsInfo] = useState(); const [showPayment, setShowPayment] = useState(false); const [showDeets, setShowDeets] = useState(false); useSetHeaderTitle('링크결제 상세_발송대기'); useSetHeaderType(HeaderType.RightClose); useSetOnBack(() => { navigate(PATHS.additionalService.linkPayment.pendingSend); }); useSetFooterMode(false); const onClickToNavigate = (path: string) => { let timeout = setTimeout(() => { clearTimeout(timeout); navigate(PATHS.additionalService.linkPayment.pendingSend, { }); }, 10) }; const onClickToShowInfo = () => { setShowPayment(!showPayment); }; const onClickToCancel = () => { let msg = '삭제 하시겠습니까?'; overlay.open(({ isOpen, close, unmount }) => { return ( onClickToNavigate(PATHS.additionalService.linkPayment.pendingSend) } message={ msg } buttonLabel={['취소', '확인']} /> ); }); }; return ( <>
3,500,000
나이스테스트가맹점
2025.06.09
) };