import React from 'react'; import { Dialog, DialogTitle, DialogDescription, DialogRoot } from '~/components/ui/Dialog'; import { useStore } from '@nanostores/react'; import { expoUrlAtom } from '~/stores/qrCodeStore'; import QRCode from 'react-qr-code'; interface ExpoQrModalProps { open: boolean; onClose: () => void; } export const ExpoQrModal: React.FC = ({ open, onClose }) => { const expoUrl = useStore(expoUrlAtom); return ( !v && onClose()}>
Preview on your own mobile device Scan this QR code with the Expo Go app on your mobile device to open your project.
{expoUrl ? (
) : (
No Expo URL detected.
)}
); };