[x] scan / camera view is represented by the black rectangle on the design and should automatically get the code behind the barcode of the product the user is aiming at, and make a request to open food fact api to get data of the product, preferably using rtk query for caching purposes/performances
[x] while the api request is performed, show the native spinner with primary color of NMF.earth (and not the custom one that you can see in the screenshot)
[x] if the api request fails, show the Something went wrong view, pressing try again should bring the Scan product barcode view back
[x] if the api request succeed but if there isn't co2eq data on the product, show No carbon data on the product but still show the nutri / nova / eco-score component (see #316)
[x] if the api request succeed and if co2eq data is available, redirect user to #320 with that info and all info needed for the nutri / nova / eco-score component in the nav params
Use api of open food fact to get eco-score from product barcode and add thie eco-score as an emission in the app. See :
Something went wrong
view, pressing try again should bring the Scan product barcode view backNo carbon data on the product
but still show the nutri / nova / eco-score component (see #316)Use api of open food fact to get eco-score from product barcode and add thie eco-score as an emission in the app. See :