import { useLanguage } from '../../../providers/language/LanguageContext';
import styles from '../ContentPreview.module.css';

interface UnsupportedRendererProps {
  previewUrl: string;
  fileName: string;
}

export function UnsupportedRenderer({ previewUrl, fileName }: UnsupportedRendererProps) {
  const { t } = useLanguage();

  return (
    <div className={styles.unsupportedContainer}>
      <div className={styles.unsupportedIcon}>📄</div>
      <p>{t('Vorschau für diesen Dateityp nicht verfügbar')}</p>
      <p className={styles.fileName}>{fileName}</p>
      <a 
        href={previewUrl} 
        download={fileName}
        className={styles.downloadButton}
      >
        {t('Herunterladen')}
      </a>
    </div>
  );
}

