The file upload code is pretty hefty and is right in the middle of the Header component, which makes it difficult to read: https://github.com/DiamondLightSource/TomoHub/blob/7f65ca72db6d4e98645d42a8a321bf1a81d6f23b/frontend/src/components/common/Header.tsx#L60-L195
This code could be moved to a separate file and/or refactored to try and simplify it a bit if possible.
The file upload code is pretty hefty and is right in the middle of the
Headercomponent, which makes it difficult to read: https://github.com/DiamondLightSource/TomoHub/blob/7f65ca72db6d4e98645d42a8a321bf1a81d6f23b/frontend/src/components/common/Header.tsx#L60-L195This code could be moved to a separate file and/or refactored to try and simplify it a bit if possible.