Untitled

mail@pastecode.io avatar
unknown
typescript
a year ago
279 B
1
Indexable
Never
import { useSelector } from 'react-redux';
import { hasPermissionsV2 } from './hasPermissions';

export const useUserPermissions = () => {
  const userPermissions = useSelector((state: any) => state.user.permissions);
  const canAccess = hasPermissionsV2(userPermissions);



};