mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-28 14:27:20 +00:00
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>
18 lines
425 B
TypeScript
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;
|