import PdfIcon from './pdfIcon';
import ExcelIcon from './excelIcon';
import WordIcon from './wordIcon';
import DefaultIcon from './defaultIcon';
import React from 'react';

export const getFileIcon = (fileType: string) => {
  switch (fileType) {
    case 'pdf':
      return <PdfIcon />;
    case 'xls':
    case 'xlsx':
    case 'xlsb':
      return <ExcelIcon />;
    case 'doc':
    case 'docx':
      return <WordIcon />;
    default:
      return <DefaultIcon />;
  }
};