1 import type { BusySlot } from './busySlotsSlice';
3 export const deduplicateBusySlots = (busySlots: BusySlot[]): BusySlot[] =>
4 busySlots.reduce<BusySlot[]>((acc, busySlot) => {
5 const isDuplicate = acc.some((slot) => slot.Start === busySlot.Start && slot.End === busySlot.End);