'use strict';

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

var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');

var getInitialsForName = function getInitialsForName(name) {
  if (!name) return '';
  var _name$split = name.split(' '),
    _name$split2 = _rollupPluginBabelHelpers.slicedToArray(_name$split, 2),
    firstName = _name$split2[0],
    secondName = _name$split2[1];
  var firstLetter = (firstName === null || firstName === void 0 ? void 0 : firstName[0]) || '';
  var secondLatter = (secondName === null || secondName === void 0 ? void 0 : secondName[0]) || '';
  return "".concat(firstLetter).concat(secondLatter).toUpperCase();
};

exports.getInitialsForName = getInitialsForName;
