Returning Action in renderHook

In v3 you could return an Action::make()->render() in a renderHook
but with v4 it complains about the iconPosition not being set (views/components/buttons/index.blade.php:38)

I know i could make a livewire component, but for a simple action it seems overkill.
Anyone got any ideas how to render an Action in a hook?
->renderHook(PanelsRenderHook::PAGE_HEADER_ACTIONS_BEFORE, function () {
  return Action::make('test')
  ->icon('heroicon-o-plus')
  ->render();
}
Was this page helpful?