how can I use my macbook pro as a primary display for my mac mini?
Wirelessly I think you'd have to use something like VNC, which is built-in to the Mac OS.

Maybe see https://www.realvnc.com/products/ which I've had some success with.

Alternatively, there's Apple Remote Access, but that is more for a corporate environment &amp; is reflected in the price.