import { motion } from 'motion/react'; import type { PercentageGeometry } from '@/lib/types/action'; interface LaserOverlayProps { geometry: PercentageGeometry; color?: string; duration?: number; } /** * Laser pointer overlay component * * Features: * - Smoothly flies in from the nearest corner to the element center * - Elegant light dot with soft breathing glow * - Uses percentage positioning (0-100) */ export function LaserOverlay({ geometry, color = '#ff3b30', duration: _duration = 3000, }: LaserOverlayProps) { const { centerX, centerY } = geometry; const startPos = { x: centerX > 50 ? 105 : -5, y: centerY > 50 ? 105 : -5, }; return (
{/* Ring pulse */} {/* Light core */}
); }