10 lines
388 B
JavaScript
10 lines
388 B
JavaScript
import { MonthsContainer } from "../styled-components/MonthsContainer";
|
|
import { getCalendarMonths, getMonthElements } from "../utils";
|
|
|
|
export const MonthsBody = ({ selectedDate, setSelectedDate }) => {
|
|
const months = getCalendarMonths(selectedDate);
|
|
const monthsElements = getMonthElements(months, setSelectedDate);
|
|
|
|
return <MonthsContainer>{monthsElements}</MonthsContainer>;
|
|
};
|