"use client"; import { memo } from "react"; import { cls } from "@/lib/utils"; interface RayConfig { width: number; opacity: number; rotation: number; scale?: number; animationDuration: number; animationDelay: number; } interface LightSourceConfig { width: number; height?: number; opacity: number; top: number; } interface DownwardRaysBackgroundProps { animated: boolean; showGrid: boolean; className?: string; containerClassName?: string; } const rays: RayConfig[] = [ { width: 35, opacity: 1, rotation: -20, animationDuration: 4, animationDelay: 0 }, { width: 35, opacity: 0.6, rotation: -12, animationDuration: 3.5, animationDelay: 0.5 }, { width: 20, opacity: 0.45, rotation: -5, scale: 0.90, animationDuration: 5, animationDelay: 1.2 }, { width: 15, opacity: 0.625, rotation: -3, animationDuration: 3, animationDelay: 0.3 }, { width: 40, opacity: 0.1, rotation: 0, scale: 0.79, animationDuration: 4.5, animationDelay: 0.8 }, { width: 20, opacity: 0.525, rotation: 3, animationDuration: 3.2, animationDelay: 1.5 }, { width: 15, opacity: 0.725, rotation: 5, scale: 0.90, animationDuration: 4.2, animationDelay: 0.2 }, { width: 35, opacity: 0.6, rotation: 12, animationDuration: 3.8, animationDelay: 1 }, { width: 35, opacity: 1, rotation: 20, animationDuration: 4, animationDelay: 0.7 }, ]; const lightSources: LightSourceConfig[] = [ { width: 1198, opacity: 0.025, top: -352 }, { width: 865, height: 929, opacity: 0.1, top: -252 }, { width: 865, height: 929, opacity: 0.1, top: -252 }, ]; const DownwardRaysBackground = ({ animated, showGrid, className = "", containerClassName = "", }: DownwardRaysBackgroundProps) => { return (
); }; DownwardRaysBackground.displayName = "DownwardRaysBackground"; export default memo(DownwardRaysBackground);