import { translatePath } from "@remotion/paths"; import { makeRect } from "@remotion/shapes"; import React, { useMemo } from "react"; const viewBox = 100; const lines = 12; const width = viewBox * 0.08; const { path } = makeRect({ height: viewBox * 0.24, width, cornerRadius: width / 2, }); const translated = translatePath(path, viewBox / 2 - width / 2, viewBox * 0.03); export const Spinner: React.FC<{ size: number; }> = ({ size }) => { const style = useMemo(() => { return { width: size, height: size, }; }, [size]); return ( {new Array(lines).fill(true).map((_, index) => { return ( ); })} ); };