import React from 'react'; import { Empty } from '@douyinfe/semi-ui'; import './index.scss'; interface ImageBoxProps { url: string; darkUrl?: string; alt: string } function ImageBox(props: ImageBoxProps): React.ReactElement { const { url, alt, darkUrl } = props; return ( } darkModeImage={darkUrl ? {alt} : null } /> ); } export default React.memo(ImageBox);