import React from "react"; import { AbsoluteFill, Series } from "remotion"; import { SlideFrame } from "../components/SlideFrame"; import { TitleSlide } from "../components/TitleSlide"; export interface Slide { title: string; body: string; accent: string; } export interface PitchDeckProps { slides: Slide[]; companyName: string; } const FRAMES_PER_SLIDE = 90; export const PitchDeck: React.FC & { calculateMetadata: (opts: { props: PitchDeckProps }) => { durationInFrames: number }; } = ({ slides, companyName }) => { return ( {slides.map((slide, i) => ( {i === 0 && companyName ? ( ) : ( )} ))} ); }; PitchDeck.calculateMetadata = ({ props }) => ({ durationInFrames: Math.max(props.slides.length * FRAMES_PER_SLIDE, FRAMES_PER_SLIDE), });