import moment from 'moment'; import styles from "./calendar.module.scss"; const DateSet = ({ index, info, today, handleClick }) => { const week = ['일', '월', '화', '수', '목', '금', '토'] return (
handleClick(info.date)}> {week[index]} {moment(info.date).format("DD")} {info.rate !== "" ? info.rate + "%" : null}
) } export default DateSet