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>
29 lines
454 B
JavaScript
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,
|
|
};
|
|
}
|