优化
This commit is contained in:
10
client/shared/hooks/model/useUsernames.ts
Normal file
10
client/shared/hooks/model/useUsernames.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { useUserInfoList } from './useUserInfoList';
|
||||
|
||||
/**
|
||||
* 用户名列表
|
||||
*/
|
||||
export function useUsernames(userIds: string[]): string[] {
|
||||
const userInfoList = useUserInfoList(userIds);
|
||||
|
||||
return userInfoList.map((info) => info.nickname);
|
||||
}
|
||||
Reference in New Issue
Block a user