How to Build a Reusable Modal Component in Material-UI