import { File as FileIcon } from '@phosphor-icons/react'; import { formatBytes } from '../utils/formatBytes.js'; const QUALITY_FORMATS = ['jpg', 'jpeg', 'webp', 'avif', 'tiff']; const ICON_SIZES = [16, 32, 48, 256, 512]; const DEFAULT_ICON_SIZE = 256; export function FileConfigCard({ item, index, t, onTargetFormatChange, onQualityChange, onIconSizeChange }) { return (
  • {item.file.name} {formatBytes(item.file.size)}
    {item.targets.length > 0 ? (
    {item.targetFormat && {item.targetFormat.toUpperCase()}}
    {QUALITY_FORMATS.includes(item.targetFormat) && ( )} {item.targetFormat === 'png' && ( )} {item.targetFormat === 'ico' && ( )} {item.targetFormat === 'pdf' && ( )}
    ) : ( {t('hero.unsupportedFormat')} )}
  • ); }