pinafore/routes/_components/dialog/creators/showEmojiDialog.js
2018-04-08 16:56:20 -07:00

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()
}