import { Flex, IconButton, Text } from '@invoke-ai/ui-library'; import { t } from 'i18next'; import { PiCopyBold } from 'react-icons/pi'; function onCopy(sessionId: string) { navigator.clipboard.writeText(sessionId); } type Props = { message: string; sessionId: string }; export default function ToastWithSessionRefDescription({ message, sessionId }: Props) { return ( {message} {t('toast.sessionRef', { sessionId })} } onClick={onCopy.bind(null, sessionId)} variant="ghost" sx={sx} /> ); } const sx = { svg: { fill: 'base.50' } };