Files
nice-app-web/src/entities/payment/ui/no-interest-info-bottom-sheet.tsx
focp212@naver.com f91ad04506 스타일 설정
2025-09-19 10:44:31 +09:00

66 lines
2.2 KiB
TypeScript

import { motion } from 'framer-motion';
import { IMAGE_ROOT } from '@/shared/constants/common';
import { BottomSheetMotionVaiants, BottomSheetMotionDuration } from '@/entities/common/model/constant';
export interface NoInterestInfoBottomSheetProps {
noInterestInfoBottomSheetOn: boolean;
setNoInterestInfoBottomSheetOn: (noInterestInfoBottomSheetOn: boolean) => void;
};
export const NoInterestInfoBottomSheet = ({
noInterestInfoBottomSheetOn,
setNoInterestInfoBottomSheetOn
}: NoInterestInfoBottomSheetProps) => {
const onClickToClose = () => {
// close
setNoInterestInfoBottomSheetOn(false);
};
return (
<>
{ noInterestInfoBottomSheetOn &&
<div className="bg-dim"></div>
}
<motion.div
className="bottomsheet"
initial="hidden"
animate={ (noInterestInfoBottomSheetOn)? 'visible': 'hidden' }
variants={ BottomSheetMotionVaiants }
transition={ BottomSheetMotionDuration }
>
<div className="bottomsheet-header">
<div className="bottomsheet-title">
<h2> </h2>
<button
className="close-btn"
type="button"
>
<img
src={ IMAGE_ROOT + '/ico_close.svg' }
alt="닫기"
onClick={ () => onClickToClose() }
/>
</button>
</div>
</div>
<div className="fee-cycle">
<div className="card-fee-box">
<span className="label"></span>
<div className="field wid-100">
<select>
<option>KB국민</option>
</select>
</div>
</div>
<div className="desc dot">할부개월 : 02, 03, 07</div>
<div className="desc dot">적용기간 : 2025.06.01 ~ 9999.12.31</div>
<div className="desc dot">적용금액 : 70,000</div>
<div className="divider"></div>
<div className="desc dot">할부개월 : 15, 20, 36, 60</div>
<div className="desc dot">적용기간 : 2025.06.01 ~ 9999.12.31</div>
<div className="desc dot">적용금액 : 50,000</div>
</div>
</motion.div>
</>
)
};