15 lines
416 B
TypeScript
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}
|