export function getDatesInRange(startDate: Date, endDate: Date) {
   const dates = [];
   const currentDate = new Date(startDate);
   while (currentDate <= endDate) {
      dates.push(new Date(currentDate));
      currentDate.setDate(currentDate.getDate() + 1);
   }
   return dates;
}