# AccessControl

AccessControl is a wrapper that renders either its children or the alternative component passed as a prop depending on whether the user has the passed permission or not.

In order to use it, install `@hiiretail/core` library to your project, configure `AuthProvider` and get `hasPermission` function from `useAccess` hook.
Pass it to the AccessControl component.
