mirror of https://github.com/msgbyte/tailchat
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.
11 lines
245 B
TypeScript
11 lines
245 B
TypeScript
3 years ago
|
import { useUserInfoList } from './useUserInfoList';
|
||
3 years ago
|
|
||
|
/**
|
||
|
* 用户名列表
|
||
|
*/
|
||
|
export function useUsernames(userIds: string[]): string[] {
|
||
3 years ago
|
const userInfoList = useUserInfoList(userIds);
|
||
3 years ago
|
|
||
3 years ago
|
return userInfoList.map((info) => info.nickname);
|
||
3 years ago
|
}
|