I'm working on a project in nextjs in which I have created a dashboard in which users can manage their websites in groups, after this i have extracted data from the websites and the data is indexed in meilisearch for adding the search functionality, now I have done all the thing.
now i want that the script of my search component that i have made in nextjs which is getting data from meilisearch and show that script in text area of my websites so users can copy and paste in their websites to have the search functionality and have the same result like i am getting in my websites, how can i do that.
as you can see i have input box where i am searching and git the results now i want to generate a script of the search component to be show in the above text boxes so users can copy and paste it in their own websites and they should get the same results as i am getting here.