()
| 97 | |
| 98 | // Get the camera type to display based on current settings |
| 99 | const getCameraType = (): CameraType => { |
| 100 | if (dataSource === 'botbrain') { |
| 101 | return botbrainCamera === 'frontal' ? 'camera' : 'back'; |
| 102 | } else if (dataSource === 'camcam') { |
| 103 | return camcamCamera; // 'thermal' or 'rgb' |
| 104 | } |
| 105 | return 'camera'; // fallback for topic mode |
| 106 | }; |
| 107 | |
| 108 | return ( |
| 109 | <Widget |