"use client"; import type { ReactNode } from "react"; import { motion, useReducedMotion } from "motion/react"; type AuroraFieldProps = { children?: ReactNode; className?: string; /** The two drifting colours. */ colors?: [string, string]; background?: string; /** Fine grid lines over the colour. */ grid?: boolean; /** 1 is the default pace; 2 is twice as fast. */ speed?: number; }; /* AuroraField: two slow colour fields under a fine grid. */ export function AuroraField({ children, className = "", colors = ["#1fd1a5", "#ff7a45"], background = "#050712", grid = true, speed = 1, }: AuroraFieldProps) { const reduce = useReducedMotion(); const loop = (seconds: number) => ({ duration: seconds / speed, repeat: Infinity, ease: "easeInOut" as const }); return (