lion/packages/calendar/src/utils/createDay.js
Mikhail Bashkirov 9fc5488175 feat(calendar): add reusable calendar
Co-authored-by: Erik Kroes <erik.kroes@ing.com>
Co-authored-by: Gerjan van Geest <gerjan.van.geest@ing.com>
Co-authored-by: Thijs Louisse <thijs.louisse@ing.com>
Co-authored-by: Thomas Allmer <thomas.allmer@ing.com>
2019-05-13 17:46:00 +02:00

29 lines
454 B
JavaScript

export function createDay(
date = new Date(),
{
weekOrder,
central = false,
startOfWeek = false,
selected = false,
previousMonth = false,
currentMonth = false,
nextMonth = false,
past = false,
today = false,
future = false,
} = {},
) {
return {
weekOrder,
central,
date,
startOfWeek,
selected,
previousMonth,
currentMonth,
nextMonth,
past,
today,
future,
};
}