define([ 'jquery', '/common/cryptpad-common.js', '/common/media-tag.js', ], function ($, Cryptpad, MediaTag) { var UI = {}; var Messages = Cryptpad.Messages; /** * Requirements from cryptpad-common.js * getFileSize * - hrefToHexChannelId * displayAvatar * - getFirstEmojiOrCharacter * - parsePadUrl * - getSecrets * - base64ToHex * - getBlobPathFromHex * - bytesToMegabytes * createUserAdminMenu * - fixHTML * - createDropdown */ UI.createButton = function (common, type, rightside, data, callback) { var AppConfig = common.getAppConfig(); var button; var size = "17px"; switch (type) { case 'export': button = $('