"use client"; import { useMotionValue } from "framer-motion"; import React, { useState, useEffect } from "react"; import { useMotionTemplate, motion } from "framer-motion"; import { cn } from "@/lib/utils"; export const EvervaultCard = ({ text, className, }: { text?: string; className?: string; }) => { let mouseX = useMotionValue(0); let mouseY = useMotionValue(0); const [randomString, setRandomString] = useState(""); useEffect(() => { let str = generateRandomString(1500); setRandomString(str); }, []); function onMouseMove({ currentTarget, clientX, clientY }: any) { let { left, top } = currentTarget.getBoundingClientRect(); mouseX.set(clientX - left); mouseY.set(clientY - top); const str = generateRandomString(1500); setRandomString(str); } return (
{randomString}