How to properly implement this same modal in react? with search and lens feature

Hello I’m quite new to using algolia, and I was task to re-create our docs and I’m trying to replicate this search function from gitbook powered by algolia.

I need to be able to have the same modal if possible and looking to have access to lens as well.

how can i properly do this? is there a common component for this modal cause I pretty much see it everywhere