Spaces:
Runtime error
Runtime error
Commit
·
e5ca1e3
1
Parent(s):
1fa631b
Update components/Markdown/CodeBlock.tsx
Browse files
components/Markdown/CodeBlock.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import { IconCheck, IconClipboard, IconDownload, IconCaretRight } from '@tabler/icons-react';
|
| 2 |
-
import { FC, memo, useRef, useState } from 'react';
|
| 3 |
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
|
| 4 |
import { oneDark } from 'react-syntax-highlighter/dist/cjs/styles/prism';
|
| 5 |
|
|
|
|
| 1 |
import { IconCheck, IconClipboard, IconDownload, IconCaretRight } from '@tabler/icons-react';
|
| 2 |
+
import { FC, memo, useEffect, useRef, useState } from 'react';
|
| 3 |
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
|
| 4 |
import { oneDark } from 'react-syntax-highlighter/dist/cjs/styles/prism';
|
| 5 |
|