import React, { useState } from "react"; import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from "@/components/ui/dialog"; import { Button } from "@/components/ui/button"; import { Terminal, ExternalLink, Copy, Check } from "lucide-react"; const ONE_LINER = "uv tool install git+https://github.com/huggingface/leLab.git && lelab"; const LOCAL_URL = "http://localhost:8000/"; interface UsageInstructionsModalProps { open: boolean; onOpenChange: (open: boolean) => void; dismissible?: boolean; } const UsageInstructionsModal: React.FC = ({ open, onOpenChange, dismissible = true, }) => { const [copied, setCopied] = useState(false); const blockClose = (e: Event) => { if (!dismissible) e.preventDefault(); }; const handleCopy = async () => { try { await navigator.clipboard.writeText(ONE_LINER); setCopied(true); setTimeout(() => setCopied(false), 1500); } catch (err) { console.warn("Clipboard write failed:", err); } }; return ( undefined} > Get Started with LeLab LeLab runs on your machine. Click the command to copy it, then paste in a terminal:

After running, your browser will open the local LeLab app.

); }; export default UsageInstructionsModal;