import XMarkIcon from '@heroicons/react/24/solid/XMarkIcon' import { useDispatch, useSelector } from 'react-redux' import NotificationBodyRightDrawer from '@/Components/features/common/components/NotificationBodyRightDrawer' import { closeRightDrawer } from '@/Components/features/common/rightDrawerSlice' import { RIGHT_DRAWER_TYPES } from '../.../../../../public/utils/globalConstantUtil' import CalendarEventsBodyRightDrawer from '@/Components/features/calendar/CalendarEventsBodyRightDrawer' function RightSidebar() { const { isOpen, bodyType, extraObject, header } = useSelector(state => state.rightDrawer) const dispatch = useDispatch() const close = (e) => { dispatch(closeRightDrawer(e)) } return (