Curious why you made this into a component.  Can't you achieve the same functionality without making a component?