How to make components with multiple global states - SolidJS