import { useTranslation } from 'next-i18next'; import { copyToClipboard } from '@lib/ui/utils'; import ClipboardDocumentIcon from '@heroicons/react/24/outline/ClipboardDocumentIcon'; import { successToast } from '@components/Toaster'; import { IconButton } from './IconButton'; export const CopyToClipboardButton = ({ text }: { text: string }) => { const { t } = useTranslation('common'); return ( { copyToClipboard(text); successToast(t('copied')); }} /> ); }; export const InputWithCopyButton = ({ text, label }: { text: string; label: string }) => { return ( <>
); };