'use client'; import useRippleBuilder from './hooks/useRippleBuilder'; import React, { forwardRef, useId, useRef } from 'react'; import { RippleAreaProps, RippleContainer } from './ripple.types'; const rippleAreaContext = React.createContext(false); const RippleEffect = forwardRef( ({ central = false, ...props }, ref) => { const uniqueId = useId(), rippleDomain = useRef(null), clicked = useRef(false), ripples = useRippleBuilder(clicked, rippleDomain, central, ref); return ( {Object.values(ripples)} ); }, ); export { rippleAreaContext, RippleEffect };