I agree, This modal is just an example. Creating a component make sense.