import { motion } from 'framer-motion'; import { IMAGE_ROOT } from '@/shared/constants/common'; import { BottomSheetMotionDuration, BottomSheetMotionVaiants } from '@/entities/common/model/constant'; import { useStore } from '@/shared/model/store'; import { useState } from 'react'; export interface CreditCardListBottomSheetProps { creditCardListBottomSheetOn: boolean; setCreditCardListBottomSheetOn: (creditCardListBottomSheetOn: boolean) => void; }; export const CreditCardListBottomSheet = ({ creditCardListBottomSheetOn, setCreditCardListBottomSheetOn }: CreditCardListBottomSheetProps) => { const cardList = useStore.getState().CommonStore.creditCardList; const [selectedCard, setSelectedCard] = useState(cardList[0].desc1); const onClickToClose = () => { setCreditCardListBottomSheetOn(false); }; return ( <> { creditCardListBottomSheetOn &&
}

카드사

{ cardList.map((value, index) => (
{ value.desc1 }
)) }
); };