import React from 'react'; import { useGroupPanel } from 'tailchat-shared'; import { PanelCommonHeader } from '../common/Header'; /** * 群组面板通用包装器 */ interface GroupPanelWrapperProps { groupId: string; panelId: string; } export const GroupPanelWrapper: React.FC = React.memo( (props) => { const panelInfo = useGroupPanel(props.groupId, props.panelId); if (panelInfo === undefined) { return null; } return (
{panelInfo.name}
{props.children}
); } ); GroupPanelWrapper.displayName = 'GroupPanelWrapper';