feat: implement copy message

This commit is contained in:
shadcn 2023-06-13 23:58:59 +04:00
parent 320db5daeb
commit 8255f2d547
5 changed files with 86 additions and 40 deletions

View file

@ -4,7 +4,7 @@ import { FC, memo } from 'react'
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter'
import { coldarkDark } from 'react-syntax-highlighter/dist/cjs/styles/prism'
import { useCopyToClipboard } from '@/lib/hooks/use-copy-to-cliipboard'
import { useCopyToClipboard } from '@/lib/hooks/use-copy-to-clipboard'
import { IconCheck, IconCopy, IconDownload } from '@/components/ui/icons'
interface Props {