import ShiftSlot from './ShiftSlot' const DAY_NAMES = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'] export default function DayColumn({ date, isToday, activeShifts = new Set(), shifts = {}, nextDayShift1 = [], nextDayShift1Active = false, showShift2 = false, windowLookup = new Map(), onWindowSelect, }) { const dayName = DAY_NAMES[date.getDay()] const dayNum = date.getDate() const dateKey = date.toISOString().slice(0, 10) function getWindowForShift(shiftIndex) { return windowLookup.get(`${dateKey}::shift${shiftIndex}`) ?? null } const shift2Visible = showShift2 || shifts.shift2.length > 0 || Boolean(getWindowForShift(2)) return (
{dayName}
{dayNum}