import { Button } from '@/components/ui/button' import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from '@/components/ui/dialog' import { Input } from '@/components/ui/input' import { Label } from '@/components/ui/label' import { Loader2 } from 'lucide-react' interface CreateExtractionDialogProps { open: boolean onOpenChange: (open: boolean) => void loading: boolean url: string onUrlChange: (url: string) => void onSubmit: () => void onCancel: () => void } export function CreateExtractionDialog({ open, onOpenChange, loading, url, onUrlChange, onSubmit, onCancel, }: CreateExtractionDialogProps) { const handleKeyDown = (e: React.KeyboardEvent) => { if (e.key === 'Enter' && !loading) { onSubmit() } } return ( Create New Extraction Extract audio from YouTube, SoundCloud, Vimeo, TikTok, Twitter, Instagram, and many other platforms.
onUrlChange(e.target.value)} onKeyDown={handleKeyDown} />

Paste a link to extract audio from the media

) }