const HasPermission = (per, permissions) => {
  return Array.isArray(permissions) && permissions.includes(per);
};

export default HasPermission;
