31 lines
993 B
JavaScript
31 lines
993 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.askAIOption = void 0;
|
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
let askAIEnabled = true;
|
|
const cliFlag = 'disable-ask-ai';
|
|
exports.askAIOption = {
|
|
name: 'Disable or Enable the Ask AI option',
|
|
cliFlag,
|
|
description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "If the Cmd + I shortcut of the Ask AI modal conflicts with your Studio, you can disable it using this." })),
|
|
ssrName: null,
|
|
docLink: 'https://www.remotion.dev/docs/config#setaskaienabled',
|
|
type: false,
|
|
getValue: ({ commandLine }) => {
|
|
if (commandLine[cliFlag] !== undefined) {
|
|
askAIEnabled = false;
|
|
return {
|
|
value: askAIEnabled,
|
|
source: 'cli',
|
|
};
|
|
}
|
|
return {
|
|
value: askAIEnabled,
|
|
source: 'config',
|
|
};
|
|
},
|
|
setConfig(value) {
|
|
askAIEnabled = value;
|
|
},
|
|
};
|