diff --git a/components/basecomponents/KidsCompSeq.tsx b/components/basecomponents/KidsCompSeq.tsx new file mode 100644 index 00000000..479d2a97 --- /dev/null +++ b/components/basecomponents/KidsCompSeq.tsx @@ -0,0 +1,88 @@ +/* eslint-disable @typescript-eslint/no-unused-vars */ +import { AbsoluteFill, useVideoConfig, Audio, Sequence, useCurrentFrame } from 'remotion'; +import { KidsTranslationsContainer } from 'components/basecomponents/KidsTranslationContainer'; +import React, { useMemo } from 'react'; +import { Phrase } from 'utils/getDataUtils'; + +interface KidsCompProps { + translations: Phrase[]; +} + +const KidsCompOld = ({ translations }: KidsCompProps) => { + const { fps } = useVideoConfig(); + + const duration = fps * 3; // in seconds + + // const sequenceList = useMemo( + // () => + // translations.map((phrase, i) => { + // return ( + // + // + // + // + // + // ); + // }), + // [translations, duration] + // ); + + const sequenceList = translations.map((phrase, i) => { + return ( + + + + + + ); + }); + + return <>{sequenceList}; +}; + +// interface CardProps { +// phrase: Phrase; +// } + +// const Card = ({ phrase }: CardProps) => ( +// <> +// +//