/* eslint react/prop-types: 0 */ import React from "react"; import { Button } from "reactstrap"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; const CopyField = props => { const ref = React.createRef(); const handleClickOnField = event => { event.target.focus(); event.target.select(); }; const handleClickOnButton = () => { const input = ref.current; input.focus(); input.select(); document.execCommand("copy"); }; const { t, value, iconCopy } = props; return (
{/*
{t("Open")}
*/}
); }; export default CopyField;