Add a button next to the 'new resource' button.
I have searched in the documentation but have not found any clues. 'getHeaderAction' is not working.
Solution
You need to put inside CreateResource.php inside pages.. and yes if you return empty array, button will not show