@remotion/renderer
Version:
Render Remotion videos using Node.js or Bun
32 lines (31 loc) • 1.01 kB
JavaScript
;
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;
},
id: cliFlag,
};