+
+ {DAY_LIST.map((day) => (
+
+ {day}
+
+ ))}
+
+ {weekCalendarList.map((week, weekIndex) => (
+ // TODO: index 값 Lint error. 임시로 주석 사용. 추후 수정 예정
+ // eslint-disable-next-line react/no-array-index-key
+
+ {week.map((day, dayIndex) => {
+ // 현재 날짜와 비교
+ const isToday = day === currentDate.getDate() && currentDate.getMonth() === new Date().getMonth() && currentDate.getFullYear() === new Date().getFullYear();
+ const dateString = `${currentDate.getFullYear()}-${String(currentDate.getMonth() + 1).padStart(2, '0')}-${String(day).padStart(2, '0')}`;
+ const emotion: EmotionTypeEN = filteredEmotionMap[dateString]; // 날짜에 해당하는 감정 가져오기
+ const iconPath = emotion && iconPaths[emotion] ? iconPaths[emotion].path : '/icon/BW/SmileFaceBWIcon.svg';
+
+ return (
+
+ {emotion ? (
+
+ ) : (
+
{day}
+ )}
+
+ );
+ })}
+
+ ))}
+