import { ActionIcon, MantineColor, MantineSize, Tooltip } from "@mantine/core"; import { CopyButton } from "@/components/common/copy-button"; import { IconCheck, IconCopy } from "@tabler/icons-react"; import React from "react"; import { useTranslation } from "react-i18next"; interface CopyProps { text: string; size?: MantineSize; color?: MantineColor; } export default function CopyTextButton({ text, size }: CopyProps) { const { t } = useTranslation(); return ( {({ copied, copy }) => ( {copied ? : } )} ); }