Invalid hooks calls in React

I have a problem cause I’m getting the userAccess from redux. I need to identify if it is admin or not.
My problem is that its not inside a hook so I can’t get the redux value.
here’s my code below
import { useSelector } from ‘react-…