import React, { useState } from 'react'; import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; export const VideoShareForm: React.FC<{ onCancel: () => void; onShare: (videoUrl: string, videoName: string) => void }> = ({ onCancel, onShare }) => { const [videoUrl, setVideoUrl] = useState(''); const [videoName, setVideoName] = useState(''); const handleShare = () => { onShare(videoUrl, videoName); }; return (

转发视频

setVideoUrl(e.target.value)} placeholder="请输入视频链接" className="bg-white/50 dark:bg-slate-800/50 border-slate-300 dark:border-slate-700 text-slate-900 dark:text-slate-100" />
setVideoName(e.target.value)} placeholder="请输入视频名称" className="bg-white/50 dark:bg-slate-800/50 border-slate-300 dark:border-slate-700 text-slate-900 dark:text-slate-100" />
); };