File size: 243 Bytes
3206347
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
import userAbility from 'helpers/userAbility';
import useCurrentUser from 'hooks/useCurrentUser';

export default function useCurrentUserAbility() {
  const { data: currentUser } = useCurrentUser();

  return userAbility(currentUser?.data);
}