"use client"; import { memo } from "react"; import { cls } from "@/lib/utils"; interface RayConfig { width: number; opacity: number; rotation: number; scale?: number; left?: string; animationDuration: number; animationDelay: number; } interface LightSourceConfig { width: number; height?: number; opacity: number; top: number; } interface RotatedRaysBackgroundProps { animated: boolean; showGrid: boolean; className?: string; containerClassName?: string; } const rays: RayConfig[] = [ { width: 35, opacity: 0.85, rotation: -18, animationDuration: 4, animationDelay: 0 }, { width: 35, opacity: 0.775, rotation: -12, animationDuration: 3.5, animationDelay: 0.5 }, { width: 20, opacity: 0.65, rotation: -5, scale: 0.90, animationDuration: 5, animationDelay: 1.2 }, { width: 15, opacity: 0.25, rotation: -3, animationDuration: 3, animationDelay: 0.3 }, { width: 40, opacity: 0.45, rotation: 0, scale: 0.79, animationDuration: 4.5, animationDelay: 0.8 }, { width: 20, opacity: 0.45, rotation: 6, animationDuration: 3.2, animationDelay: 1.5 }, { width: 35, opacity: 0.65, rotation: 9, scale: 0.83, animationDuration: 4.2, animationDelay: 0.2 }, { width: 35, opacity: 1, rotation: 14, scale: 0.9, animationDuration: 3.8, animationDelay: 1 }, ]; const lightSources: LightSourceConfig[] = [ { width: 1198, opacity: 0.05, top: -352 }, { width: 865, height: 929, opacity: 0.15, top: -252 }, { width: 865, height: 929, opacity: 0.15, top: -252 }, ]; const RotatedRaysBackground = ({ animated, showGrid, className = "", containerClassName = "", }: RotatedRaysBackgroundProps) => { return (