import React from 'react'; import {Easing, interpolate} from 'remotion'; // Reusable country label. Supply typography and final values from the consuming project; the CSS custom // properties below provide neutral fallbacks. Positioned by its centre (x,y in screen px). export const CountryLabel: React.FC<{ name: string; color: string; reveal: number; x: number; y: number; }> = ({name, color, reveal, x, y}) => { const e = interpolate(reveal, [0, 1], [0, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: Easing.bezier(0.3333333333333333, 1, 0.6666666666666666, 1), }); return (
{/* accent rule — draws out from the centre in the country's colour */}
{name}
); };