import { useAlert } from '@gear-js/react-hooks'; import { Button } from '@gear-js/ui'; import { copyToClipboard } from '@/shared/helpers'; import copySVG from '@/shared/assets/images/actions/copy.svg?react'; import styles from './CopiedInfo.module.scss'; type Props = { info: string; title?: string; }; const CopiedInfo = ({ title, info }: Props) => { const alert = useAlert(); const handleClick = () => copyToClipboard(info, alert); return (
{title}:
{info}