MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / CodeBlock.tsx

File CodeBlock.tsx

webview-ui/src/components/common/CodeBlock.tsx:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { memo, useEffect, useRef, useCallback, useState } from "react"
2import styled from "styled-components"
3import { useCopyToClipboard } from "@src/utils/clipboard"
4import { getHighlighter, isLanguageLoaded, normalizeLanguage } from "@src/utils/highlighter"

Callers

nothing calls this directly

Calls 7

normalizeLanguageFunction · 0.90
useCopyToClipboardFunction · 0.90
useAppTranslationFunction · 0.90
highlightFunction · 0.85
handleScrollFunction · 0.85
tFunction · 0.85
errorMethod · 0.65

Tested by

no test coverage detected