apps/meteor/client/views/room/hooks/useUserInfoActions/actions/useReportUser.tsx
Function useReportUser
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useReportUser = (user: Pick<IUser, '_id' | 'username' | 'name'>): UserInfoAction | undefined => {
const { _id: uid, username, name } = user;
const ownUserId = useUserId();
const setModal = useSetModal();