···11import { cn } from "@/utils/cn";
22import { AnimatePresence, motion } from "framer-motion";
33-import React, { useEffect, useState } from "react";
33+import React, { useState } from "react";
44import { AiOutlineEdit } from "react-icons/ai";
5566interface Props {
···3737 );
38383939 // this cuz there can be multiple color inputs on the same page, so it will bug, so we need to identify them
4040- const [inputId, setInputId] = useState<string>("");
4141- useEffect(() => {
4242- setInputId(Math.random().toString(36).slice(2, 15) + Math.random().toString(36).slice(2, 15));
4343- }, []);
4040+ const [inputId] = useState<string>(() => Math.random().toString(36).slice(2, 15) + Math.random().toString(36).slice(2, 15));
44414542 const [isHovered, setIsHovered] = useState<boolean>(false);
4643