import { __ } from '@wordpress/i18n'; import React, { useState } from 'react'; import Header from '../components/layout/Header'; import PluginPage from '../components/layout/PluginPage'; import Card from '../components/ui/card'; import ProAlert from '../components/ui/pro-alert'; import { Tooltip } from '../components/ui/tooltip'; export default function DetectDuplicateImages({ tooltip }: { tooltip?: string } = {}) { const [alertOpen, setAlertOpen] = useState(false); const openAlert = () => setAlertOpen(true); const [chunkSize, setChunkSize] = useState('1000'); const detectImageUrl = (window.THUMBPRESS?.assets_url || '') + 'admin/img/no-search-result.png'; return ( <> Ready to Scan for Duplicates? Click "Detect Now" to scan your library and identify redundant files taking up unnecessary storage space. Chunk Size setChunkSize(e.target.value)} placeholder="e.g. 50" className="flex w-full !rounded-lg !border !border-thumbpress-border bg-white !px-4 !h-[56px] text-sm placeholder:text-gray-400 focus:!outline-none focus:!shadow-none" /> Detect Now Detect in background setAlertOpen(false)} /> > ); }
Click "Detect Now" to scan your library and identify redundant files taking up unnecessary storage space.