import type {AnyRemotionOption} from './option'; const cliFlag = 'props' as const; export const propsOption = { name: 'Input props', addedIn: '1.0.0', cliFlag, description: () => ( <> Input Props to pass to the selected composition of your video. Must be a serialized JSON string ( --props='{'{'}"hello": "world"{'}'}' ) or a path to a JSON file (./path/to/props.json). ), ssrName: null, docLink: 'https://www.remotion.dev/docs/options/props', getValue: ({commandLine}) => { if (commandLine[cliFlag] !== undefined) { return { source: 'cli', value: commandLine[cliFlag] as string, }; } return { source: 'default', value: null, }; }, setConfig: () => { throw new Error( 'setProps is not supported. Pass --props via the CLI instead.', ); }, type: '' as string | null, id: cliFlag, } satisfies AnyRemotionOption;