Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

580 B
Raw Blame
'use client';

import { memo } from 'react';

import ChannelList from '@/features/Channels/ChannelList';

import { useSidebarSectionMenuItems } from './useSidebarSectionMenuItems';

interface ChannelsProps {
  itemKey: string;
}

/** The home sidebar's Channels section, with the same layout menu as the other sections. */
const Channels = memo<ChannelsProps>(({ itemKey }) => {
  const layoutMenuItems = useSidebarSectionMenuItems(itemKey);

  return <ChannelList layoutMenuItems={layoutMenuItems} />;
});

Channels.displayName = 'HomeSidebarChannels';

export default Channels;