import { memo } from 'react'; import CodeViewer from './code-viewer'; import './styles/dark.less'; interface CodeViewerProps { code: string; copyValue?: string; lang: string; autodetect?: boolean; ignoreIllegals?: boolean; copyable?: boolean; height?: string | number; style?: React.CSSProperties; } const DarkViewer: React.FC = (props) => { const { code, copyValue, lang, autodetect, ignoreIllegals, copyable, height = 'auto' } = props || {}; return ( ); }; export default memo(DarkViewer);