import { MonitorUp } from "lucide-react"; import { useState } from "react"; import { Button } from "../ui/button"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "../ui/card"; import { Input } from "../ui/input"; interface ScreenShareProps { loading: boolean; onStart: (source: string) => void; onSkip: () => void; onStop: () => void; } export function ScreenShare({ loading, onStart, onSkip, onStop }: ScreenShareProps) { const [source, setSource] = useState(""); const submit = () => { const trimmed = source.trim(); if (!trimmed) return; onStart(trimmed); setSource(""); }; return ( Screen Share Start screen-share playback from a URL or local file path. setSource(event.target.value)} onKeyDown={(event) => event.key === "Enter" && submit()} placeholder="Screen share URL or local file path" />
); }