import { useShallow } from "zustand/react/shallow"; import { useMachineStore } from "../stores/useMachineStore"; import { isBluetoothSupported } from "../utils/bluetoothSupport"; import { ExclamationTriangleIcon } from "@heroicons/react/24/solid"; import { Button } from "@/components/ui/button"; import { Card, CardContent } from "@/components/ui/card"; import { Alert, AlertDescription } from "@/components/ui/alert"; export function ConnectionPrompt() { const { connect } = useMachineStore( useShallow((state) => ({ connect: state.connect, })), ); if (isBluetoothSupported()) { return ( Get Started Connect to your embroidery machine Connect to Machine ); } return ( Browser Not Supported Your browser doesn't support Web Bluetooth, which is required to connect to your embroidery machine. Please try one of these options: Use a supported browser (Chrome, Edge, or Opera) Download the Desktop app from{" "} GitHub Releases ); }
Connect to your embroidery machine
Your browser doesn't support Web Bluetooth, which is required to connect to your embroidery machine.
Please try one of these options: