I have defined an object in one component and trying to access it through props in another class component. How can I access those props?