import { motion } from 'framer-motion'; import { IMAGE_ROOT } from '@/shared/constants/common'; import { BottomSheetMotionVaiants, BottomSheetMotionDuration } from '@/entities/common/model/constant'; import { InstallmentDetails, PaymentInstallmentDetailResponse } from '../model/types'; import { ChangeEvent } from 'react'; import { NumericFormat } from 'react-number-format'; export interface NoInterestInfoBottomSheetProps { noInterestInfoBottomSheetOn: boolean; setNoInterestInfoBottomSheetOn: (noInterestInfoBottomSheetOn: boolean) => void; cardCompany?: string; cardCompanyOptions?: Array; installmentDetails?: Array; changeToCardCompany?: (cardCompany: string) => void; }; export const NoInterestInfoBottomSheet = ({ noInterestInfoBottomSheetOn, setNoInterestInfoBottomSheetOn, cardCompany, cardCompanyOptions, installmentDetails, changeToCardCompany }: NoInterestInfoBottomSheetProps) => { const onClickToClose = () => { setNoInterestInfoBottomSheetOn(false); }; const onChangeToCardCompany = (e: ChangeEvent) => { let value = e.target.value; if(changeToCardCompany){ changeToCardCompany(value); } }; return ( <> { noInterestInfoBottomSheetOn &&
}

무이자 정보

카드사
{ !!cardCompanyOptions && }
{ !!installmentDetails && installmentDetails.length > 0 && installmentDetails.map((value, index) => ( <> { (index > 0) &&
}
할부개월 : { value.installmentMonths }
적용기간 : { value.applicationPeriod }
적용금액 :
)) } {/*
할부개월 : 02, 03, 07
적용기간 : 2025.06.01 ~ 9999.12.31
적용금액 : 70,000
할부개월 : 15, 20, 36, 60
적용기간 : 2025.06.01 ~ 9999.12.31
적용금액 : 50,000
*/}
) };