import React from 'react'; import { __ } from '@wordpress/i18n'; import { ChevronRight, FileImage, RefreshCw, Search, SlidersHorizontal, type LucideIcon } from 'lucide-react'; const rowClass = 'flex items-center gap-2.5 h-10 border-t border-slate-100 no-underline !text-thumbpress-title font-medium w-full bg-transparent border-x-0 border-b-0 cursor-pointer text-left disabled:opacity-60 disabled:cursor-default'; export default function QuickActions( { onScan, scanBusy }: { onScan: () => void; scanBusy: boolean } ) { const link = ( to: string, label: string, Icon: LucideIcon ) => ( ); return (

{ __( 'Quick actions', 'image-sizes' ) }

{ link( '/thumbnails', __( 'Regenerate thumbnails', 'image-sizes' ), RefreshCw ) } { link( '/convert-to-webp', __( 'Convert to WebP', 'image-sizes' ), FileImage ) } { link( '/settings', __( 'Settings', 'image-sizes' ), SlidersHorizontal ) }
); }