focalboard/webapp/src/blockIcons.ts
2020-10-20 12:52:56 -07:00

15 lines
416 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {randomEmojiList} from './emojiList'
class BlockIcons {
static readonly shared = new BlockIcons()
randomIcon(): string {
const index = Math.floor(Math.random() * randomEmojiList.length)
const icon = randomEmojiList[index]
return icon
}
}
export {BlockIcons}