'use client'

const AppCalendar = () => {
  return <></>
  // // States
  // const [calendarApi, setCalendarApi] = useState<null | any>(null)
  // const [leftSidebarOpen, setLeftSidebarOpen] = useState<boolean>(false)
  // const [addEventSidebarOpen, setAddEventSidebarOpen] = useState<boolean>(false)

  // // Hooks
  // const dispatch = useAppDispatch()
  // const calendarStore = useSelector((state: { calendarReducer: CalendarType & { loading: boolean; error: string | null } }) => state.calendarReducer)
  // const mdAbove = useMediaQuery((theme: Theme) => theme.breakpoints.up('md'))

  // // Fetch events on mount
  // useEffect(() => {
  //   dispatch(fetchEvents())
  // }, [dispatch])

  // const handleLeftSidebarToggle = () => setLeftSidebarOpen(!leftSidebarOpen)

  // const handleAddEventSidebarToggle = () => setAddEventSidebarOpen(!addEventSidebarOpen)

  // return (
  //   <>
  //     <SidebarLeft
  //       mdAbove={mdAbove}
  //       dispatch={dispatch}
  //       calendarApi={calendarApi}
  //       calendarStore={calendarStore}
  //       calendarsColor={calendarsColor}
  //       leftSidebarOpen={leftSidebarOpen}
  //       handleLeftSidebarToggle={handleLeftSidebarToggle}
  //       handleAddEventSidebarToggle={handleAddEventSidebarToggle}
  //     />
  //     <div className='p-6 pbe-0 flex-grow overflow-visible bg-backgroundPaper rounded'>
  //       <Calendar
  //         dispatch={dispatch}
  //         calendarApi={calendarApi}
  //         calendarStore={calendarStore}
  //         setCalendarApi={setCalendarApi}
  //         calendarsColor={calendarsColor}
  //         handleLeftSidebarToggle={handleLeftSidebarToggle}
  //         handleAddEventSidebarToggle={handleAddEventSidebarToggle}
  //       />
  //     </div>
  //     <AddEventSidebar
  //       dispatch={dispatch}
  //       calendarApi={calendarApi}
  //       calendarStore={calendarStore}
  //       addEventSidebarOpen={addEventSidebarOpen}
  //       handleAddEventSidebarToggle={handleAddEventSidebarToggle}
  //     />
  //   </>
  // )
}

export default AppCalendar
