import { useUserSubscription } from '@rocket.chat/ui-contexts'; import SidePanelAll from './SidePanelAll'; import SidePanelChannels from './SidePanelChannels'; import SidePanelTeams from './SidePanelTeams'; import { withErrorBoundary } from '../../../../components/withErrorBoundary'; import { useSidePanelFilter } from '../../contexts/RoomsNavigationContext'; export type SidePanelRoomsProps = { parentRid: string }; const SidePanelRooms = ({ parentRid }: SidePanelRoomsProps) => { const [currentTab] = useSidePanelFilter(); const subscription = useUserSubscription(parentRid); if (!subscription) { return ; } switch (currentTab) { case 'teams': return ; case 'channels': case 'directMessages': return ; } }; export default withErrorBoundary(SidePanelRooms);