fix: show tool-specific accepted formats in dropzone, remove privacy note

The inner Dropzone was showing generic "Images, Videos, Audio, PDFs..."
text. Now it shows the tool's actual accepted formats (e.g., "MP4, MOV,
WEBM, MKV..." for video tools) via the acceptDescription prop.
Removed the privacy note text per user feedback.
This commit is contained in:
SnapOtter
2026-06-14 21:18:45 +08:00
parent 207c1c348b
commit 5241ccd124
@@ -1,5 +1,5 @@
import type { Tool } from "@snapotter/shared";
import { FileImage, Lock } from "lucide-react";
import { FileImage } from "lucide-react";
import { useMemo } from "react";
import { useTranslation } from "@/contexts/i18n-context";
import { format } from "@/lib/format";
@@ -68,18 +68,9 @@ export function ToolDropzone({
accept={accept}
multiple={resolvedMultiple}
fileFilter={fileFilter}
acceptDescription={formatsDisplay ?? undefined}
/>
{/* Accepted formats */}
{formatsDisplay && (
<p className="text-xs text-muted-foreground text-center">{formatsDisplay}</p>
)}
{/* Privacy note */}
<p className="flex items-center gap-1.5 text-xs text-muted-foreground">
<Lock className="h-3 w-3 shrink-0" />
{t.toolPage.privacyNote}
</p>
</div>
);
}