import React from 'react'; import { spring, useCurrentFrame, useVideoConfig } from 'remotion'; import { colors } from '../lib/theme'; type PhoneFrameProps = { children: React.ReactNode; /** Width of the phone viewport */ width?: number; /** Height of the phone viewport */ height?: number; }; export const PhoneFrame: React.FC = ({ children, width = 375, height = 812, }) => { const frame = useCurrentFrame(); const { fps } = useVideoConfig(); // Scale-in animation const scale = spring({ frame, fps, config: { damping: 15, stiffness: 80 }, }); const bezelW = width + 24; const bezelH = height + 24; return (
{/* Notch / Dynamic Island */}
{/* Screen content */}
{children}
); };