MCPcopy
hub / github.com/yinxin630/fiora / useFocusLinkman

Function useFocusLinkman

packages/app/src/hooks/useStore.tsx:41–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41export function useFocusLinkman() {
42 const data = useStore();
43 const { linkmans, focus = '' } = data;
44 if (linkmans) {
45 return linkmans.find((linkman) => linkman._id === focus);
46 }
47 return null;
48}
49
50export function useFocus() {
51 const data = useStore();

Callers 6

UserInfoFunction · 0.90
GroupInfoFunction · 0.90
GroupProfileFunction · 0.90
ChatFunction · 0.90
MessageListFunction · 0.90
ChatRightButtonFunction · 0.90

Calls 1

useStoreFunction · 0.70

Tested by

no test coverage detected