You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailchat/shared/redux/hooks/useGroup.ts

10 lines
272 B
TypeScript

import type { GroupInfo } from '../../model/group';
import { useAppSelector } from './useAppSelector';
/**
* 获取群组信息
*/
export function useGroupInfo(groupId: string): GroupInfo | undefined {
return useAppSelector((state) => state.group.groups[groupId]);
}