Use text that is passed through props to know which constant is called for button onClick