diff --git a/app/components/FileOrUrlField.tsx b/app/components/FileOrUrlField.tsx index baedabe..613ca29 100644 --- a/app/components/FileOrUrlField.tsx +++ b/app/components/FileOrUrlField.tsx @@ -1,4 +1,6 @@ import { Upload, Link, X } from 'lucide-react'; +import { Input } from '~/components/ui/input'; +import { Label } from '~/components/ui/label'; export type InputMode = 'url' | 'file'; @@ -14,21 +16,24 @@ export interface FileOrUrlFieldProps { url: string; onUrlChange: (u: string) => void; urlPlaceholder: string; + existingFileName?: string; + onClearExistingFile?: () => void; } export function FileOrUrlField({ label, required, mode, onModeChange, accept, file, onFileChange, inputRef, url, onUrlChange, urlPlaceholder, + existingFileName, onClearExistingFile, }: FileOrUrlFieldProps) { return (
{/* Label + toggle */}
-