Hey, I was wondering if it’s possible to turn our popup element into a reusable component. We use these popups in various parts of the app, and they all look similar. They have two buttons at the bottom, text content, a title, and a close button in the header, as shown in the screenshot.
I’m struggling to visualize how to make this a reusable element because the action button (in red) at the bottom runs different actions based on where the popup is used. Is there a way to create a single reusable popup element that can handle different actions for the button?
I’m looking for some guidance on how to achieve this. Thank you!