import React from "react";
import { IconBlankCsvOutline, IconBlankDocOutline, IconBlankOutline, IconBlankPdfOutline, IconBlankTxtOutline, IconBlankXlsOutline } from "../../_Icon";
import { tokens } from "../File.tokens";
export var getFileIcon = function getFileIcon(extension, size) {
    var iconSize = size === 'xs' ? 'xs' : 's';
    switch(extension){
        case 'pdf':
            return /*#__PURE__*/ React.createElement(IconBlankPdfOutline, {
                size: iconSize,
                sizeCustomProperty: tokens.fileThumbSize,
                color: "inherit"
            });
        case 'doc':
            return /*#__PURE__*/ React.createElement(IconBlankDocOutline, {
                size: iconSize,
                sizeCustomProperty: tokens.fileThumbSize,
                color: "inherit"
            });
        case 'docx':
            return /*#__PURE__*/ React.createElement(IconBlankDocOutline, {
                size: iconSize,
                sizeCustomProperty: tokens.fileThumbSize,
                color: "inherit"
            });
        case 'xls':
            return /*#__PURE__*/ React.createElement(IconBlankXlsOutline, {
                size: iconSize,
                sizeCustomProperty: tokens.fileThumbSize,
                color: "inherit"
            });
        case 'xlsx':
            return /*#__PURE__*/ React.createElement(IconBlankXlsOutline, {
                size: iconSize,
                sizeCustomProperty: tokens.fileThumbSize,
                color: "inherit"
            });
        case 'txt':
            return /*#__PURE__*/ React.createElement(IconBlankTxtOutline, {
                size: iconSize,
                sizeCustomProperty: tokens.fileThumbSize,
                color: "inherit"
            });
        case 'csv':
            return /*#__PURE__*/ React.createElement(IconBlankCsvOutline, {
                size: iconSize,
                sizeCustomProperty: tokens.fileThumbSize,
                color: "inherit"
            });
        default:
            return /*#__PURE__*/ React.createElement(IconBlankOutline, {
                size: iconSize,
                sizeCustomProperty: tokens.fileThumbSize,
                color: "inherit"
            });
    }
};
