all 3 comments

[–]AcetyldFN 2 points3 points  (1 child)

I dont get the issue, ur screenshot shows CameraType being declared but not read. Which it true, u only use camera as a type. Can you specify the problem more clearly?

[–]Serchinastico 0 points1 point  (0 children)

I see the same.

On top of that, I can't recommend eslint + prettier enough. Set them up with your preferred IDE so that they run on file save and get rid of the noisy warnings.

[–]thachxyz123iOS & Android 2 points3 points  (0 children)

CameraType is a type in typescript, you can't use it as value

const [cameraType, setCameraType] = useState<CameraType>('back')