UNPKG

@remotion/studio

Version:

APIs for interacting with the Remotion Studio

50 lines (49 loc) 1.84 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getHelpLink = void 0; const getHelpLink = (message) => { if (message.includes('See https://www.remotion.dev/docs/the-fundamentals#defining-compositions')) { return { title: 'Defining compositions', url: 'See https://www.remotion.dev/docs/the-fundamentals#defining-compositions', }; } if (message.includes('https://remotion.dev/docs/wrong-composition-mount')) { return { title: 'Wrongly mounted <Composition>', url: 'https://remotion.dev/docs/wrong-composition-mount', }; } if (message.includes('https://remotion.dev/docs/staticfile-relative-paths')) { return { title: 'staticFile() relative paths', url: 'https://remotion.dev/docs/staticfile-relative-paths', }; } if (message.includes('https://remotion.dev/docs/staticfile-remote-urls')) { return { title: 'staticFile() remote URLs', url: 'https://remotion.dev/docs/staticfile-remote-urls', }; } if (message.includes('https://remotion.dev/docs/non-seekable-media')) { return { title: 'Non-seekable media', url: 'https://remotion.dev/docs/non-seekable-media', }; } if (message.includes('https://remotion.dev/docs/media-playback-error')) { return { title: 'Media playback error', url: 'https://remotion.dev/docs/media-playback-error', }; } if (message.includes('Div is not part of the THREE')) { return { title: '<Sequence> inside <ThreeCanvas>', url: 'https://remotion.dev/docs/sequence#note-for-remotionthree', }; } return null; }; exports.getHelpLink = getHelpLink;