DB-GPT/web/new-components/common/MyEmpty.tsx
lhwan 3a32344380
feat: web update (#1860)
Co-authored-by: 夏姜 <wenfengjiang.jwf@digital-engine.com>
Co-authored-by: yhjun1026 <460342015@qq.com>
Co-authored-by: aries_ckt <916701291@qq.com>
Co-authored-by: wb-lh513319 <wb-lh513319@alibaba-inc.com>
2024-08-22 11:05:18 +08:00

18 lines
425 B
TypeScript

import { Empty } from 'antd';
import classNames from 'classnames';
interface Props {
className?: string;
imgUrl?: string;
}
const MyEmpty: React.FC<Props> = ({ className, imgUrl = '/pictures/empty.png' }) => {
return (
<div className={classNames('m-auto', { className })}>
<Empty image={imgUrl} imageStyle={{ margin: '0 auto', width: '100%', height: '100%' }} />
</div>
);
};
export default MyEmpty;