Added props to the component
Extracted component into a separate module