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