Add calendar tile

This commit is contained in:
Meierschlumpf
2022-12-11 14:11:25 +01:00
parent 65970d3a2f
commit c2571190f6
13 changed files with 391 additions and 416 deletions

8
src/tools/isToday.ts Normal file
View File

@@ -0,0 +1,8 @@
export const isToday = (date: Date) => {
const today = new Date();
return (
today.getDate() === date.getDate() &&
today.getMonth() === date.getMonth() &&
date.getFullYear() === date.getFullYear()
);
};