import type { FormEvent } from 'react' import { Plus } from 'lucide-react' import type { Library } from '../types' type StrmImportSectionProps = { libraries: Library[] libraryID: string title: string url: string importing: boolean onImport: (event: FormEvent) => void setLibraryID: (value: string) => void setTitle: (value: string) => void setURL: (value: string) => void } export function StrmImportSection({ libraries, libraryID, title, url, importing, onImport, setLibraryID, setTitle, setURL, }: StrmImportSectionProps) { return (

导入 STRM 条目

setTitle(e.target.value)} /> setURL(e.target.value)} />

导入后会创建一条 container=strm 的媒体记录,播放时会 302 重定向到该 URL。

) }