'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var extractExtension = require('./extractExtension.js');
var getFileicon = require('./getFileicon.js');

var getFilenameParts = function getFilenameParts(filename, size, customIcon) {
  var extension = extractExtension.extractExtension(filename) || '';
  var filenameWithoutExtension = filename.slice(0, -1 - ((extension === null || extension === void 0 ? void 0 : extension.length) || 0)) || '';
  var cellContentLeft = customIcon || getFileicon.getFileIcon(extension, size);
  return {
    extension: extension,
    filenameWithoutExtension: filenameWithoutExtension,
    cellContentLeft: cellContentLeft,
    isVisible: true
  };
};

exports.getFilenameParts = getFilenameParts;
