38 lines
1.4 KiB
TypeScript
38 lines
1.4 KiB
TypeScript
// Module ID: 8999
|
|
// Function ID: 9000
|
|
// Name: conjurePreviewSurface
|
|
// Dependencies: [9000, 8738, 8547, 2]
|
|
// Exports: getConjureBuilderPreviewFrame, getConjurePreviewGuildId, getConjurePreviewSurface
|
|
|
|
// Module 8999 (conjurePreviewSurface)
|
|
import EmbeddedSurfaceType from "EmbeddedSurfaceType" /* 8547 */;
|
|
import FramesConstants from "FramesConstants" /* 8738 */;
|
|
import FramesStore from "FramesStore" /* 9000 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const makeFrameId = FramesConstants.makeFrameId;
|
|
const CONJURE_PREVIEW_SURFACE = { type: EmbeddedSurfaceType.EmbeddedSurfaceType.APP_CHANNEL };
|
|
const result = size.fileFinishedImporting("modules/conjure/preview/conjurePreviewSurface.tsx");
|
|
|
|
export { CONJURE_PREVIEW_SURFACE };
|
|
export const getConjurePreviewGuildId = function getConjurePreviewGuildId(project) {
|
|
let install_scope;
|
|
if (project != null) {
|
|
install_scope = project.install_scope;
|
|
}
|
|
let guild_id;
|
|
if ("guild" === install_scope) {
|
|
guild_id = project.guild_id;
|
|
}
|
|
return guild_id;
|
|
};
|
|
export const getConjurePreviewSurface = function getConjurePreviewSurface(stateFromStores) {
|
|
let obj;
|
|
if (null != stateFromStores) {
|
|
obj = { type: EmbeddedSurfaceType.EmbeddedSurfaceType.APP_CHANNEL, guildId: stateFromStores };
|
|
}
|
|
return obj;
|
|
};
|
|
export const getConjureBuilderPreviewFrame = function getConjureBuilderPreviewFrame(prop) {
|
|
return FramesStore.getFrame(makeFrameId(prop, obj));
|
|
};
|