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