59 lines
1.8 KiB
TypeScript
59 lines
1.8 KiB
TypeScript
import { motion } from 'framer-motion';
|
|
import { IMAGE_ROOT } from '@/shared/constants/common';
|
|
import { SmsPaymentDetailResendProps } from '../../model/types';
|
|
|
|
export const SmsPaymentDetailResend = ({
|
|
bottomSmsPaymentDetailResendOn,
|
|
setBottomSmsPaymentDetailResendOn
|
|
}: SmsPaymentDetailResendProps) => {
|
|
|
|
const variants = {
|
|
hidden: { y: '100%' },
|
|
visible: { y: '0%' },
|
|
};
|
|
const onClickToClose = () => {
|
|
// close
|
|
setBottomSmsPaymentDetailResendOn(false);
|
|
};
|
|
|
|
return (
|
|
<>
|
|
{ bottomSmsPaymentDetailResendOn &&
|
|
<div className="bg-dim"></div>
|
|
}
|
|
<motion.div
|
|
className="bottomsheet"
|
|
initial="hidden"
|
|
animate={ (bottomSmsPaymentDetailResendOn)? 'visible': 'hidden' }
|
|
variants={ variants }
|
|
transition={{ duration: 0.5 }}
|
|
>
|
|
<div className="bottomsheet-header">
|
|
<div className="bottomsheet-title">
|
|
<h2>SMS 상세 & 재발송</h2>
|
|
<button
|
|
className="close-btn"
|
|
type="button"
|
|
>
|
|
<img
|
|
src={ IMAGE_ROOT + '/ico_close.svg' }
|
|
alt="닫기"
|
|
onClick={ () => onClickToClose() }
|
|
/>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div className="resend-info">
|
|
<div className="resend-row">발신자(번호) : 유앤아이피부과(16610808)</div>
|
|
<div className="resend-row">수신자(번호) : 김*환(010****7000)</div>
|
|
</div>
|
|
<div className="resend-box">
|
|
<p className="resend-text">[유앤아이피부과]김*환님, 신한은행 110322141414 (300원 06/08 입금완료)</p>
|
|
</div>
|
|
<div className="bottomsheet-footer">
|
|
<button className="btn-50 btn-blue flex-1" type="button">신청</button>
|
|
</div>
|
|
</motion.div>
|
|
</>
|
|
);
|
|
}; |