import React, {createElement} from 'react'; import {useVideoConfig} from 'remotion'; import {loadFont as loadMain} from '@remotion/google-fonts/Bungee'; import transcriptData from './Transcription.json'; const {fontFamily: fontFamily2} = loadMain(); import {TransitionSeries} from '@remotion/transitions'; const codeStyle = (index) => { return { color: 'white', position: 'absolute', backgroundColor: 'red', top: '50%', width: '100%', transform: 'translate(-50%, -50%)', left: '50%', }; }; const subtitle = { fontFamily: fontFamily2, fontSize: 120, textAlign: 'center', display: 'relative', bottom: 140, width: '100%', }; export const Subtitle = () => { const {fps} = useVideoConfig(); return (