import React, { useState } from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faCopy } from "@fortawesome/free-regular-svg-icons/faCopy"; import { faCheckCircle } from "@fortawesome/free-regular-svg-icons/faCheckCircle"; import { faCheck } from "@fortawesome/free-solid-svg-icons/faCheck"; type CopyProps = { value: string; rounded?: boolean; }; const Copy: React.FC = ({ value, rounded }) => { const [copying, setCopying] = useState(false); const doCopy = () => { navigator.clipboard.writeText(value); setCopying(true); setTimeout(() => { setCopying(false); }, 1000); }; return ( ); }; export default React.memo(Copy);