20 lines
728 B
TypeScript
20 lines
728 B
TypeScript
// Metro module 14148 (f14149).
|
|
import { v4 } from "../../../../_bundle/Module514";
|
|
import ModalActionCreators from "../../../../actions/ModalActionCreators";
|
|
import { handleVideoQuestModalClose, getVideoQuestModalKey } from "../../utils/VideoQuestUtils";
|
|
export default function openVideoQuestModal({ questId, sourceQuestContent, questContentPosition, initialStep }) {
|
|
const videoSessionId = v4();
|
|
return ModalActionCreators.pushLazy(import("./VideoQuestModal"), {
|
|
questId,
|
|
questContentPosition,
|
|
videoSessionId,
|
|
initialStep,
|
|
onClose: () => handleVideoQuestModalClose({
|
|
questId,
|
|
sourceQuestContent,
|
|
videoSessionId
|
|
}),
|
|
sourceQuestContent
|
|
}, getVideoQuestModalKey(questId));
|
|
};
|