17 lines
445 B
JavaScript
17 lines
445 B
JavaScript
import EmojiDialog from '../components/EmojiDialog.html'
|
|
import { createDialogElement } from '../helpers/createDialogElement'
|
|
import { createDialogId } from '../helpers/createDialogId'
|
|
|
|
export function showEmojiDialog (realm) {
|
|
let emojiDialog = new EmojiDialog({
|
|
target: createDialogElement(),
|
|
data: {
|
|
id: createDialogId(),
|
|
label: 'Emoji dialog',
|
|
title: 'Custom emoji',
|
|
realm
|
|
}
|
|
})
|
|
emojiDialog.show()
|
|
}
|