import React, { useState } from "react"; import useCopying from "./useCopying"; import CopyingTooltip from "./CopyingTooltip"; export default ({ text }) => { const [textareaChild, copyText] = useCopying(text); const [hovered, setHovered] = useState(false); const [copied, setCopied] = useState(false); return (