+ )}
+ >
)}
{/* Pattern File - Show during upload stage (before pattern is uploaded) */}
diff --git a/src/utils/bluetoothSupport.ts b/src/utils/bluetoothSupport.ts
new file mode 100644
index 0000000..84685c2
--- /dev/null
+++ b/src/utils/bluetoothSupport.ts
@@ -0,0 +1,17 @@
+/**
+ * Check if the current browser/environment supports Web Bluetooth API
+ * @returns true if Web Bluetooth is supported (or running in Electron), false otherwise
+ */
+export function isBluetoothSupported(): boolean {
+ // Always supported in Electron app
+ if (typeof window !== 'undefined' && (window as any).electronAPI) {
+ return true;
+ }
+
+ // Check for Web Bluetooth API support in browser
+ if (typeof navigator !== 'undefined' && 'bluetooth' in navigator) {
+ return true;
+ }
+
+ return false;
+}