mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-21 13:38:56 +02:00
16 lines
416 B
TypeScript
16 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}
|