Form button with relationship

How to have a button(visible if the record has the relationship) that opens the edit form of that relationship.
I tried like
php 
....ArticleForm
 Forms\Components\Actions::make([
          Action::make(__('Comment'))
              ->button()
              ->form([ 
                    ....CommentForm

How to make the relationship? Or is there a better way to do this?
Was this page helpful?