You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
686 B

import { Empty } from 'antd';
import React from 'react';
const EmptyData: React.FC<{
height?: string | number;
title?: React.ReactNode;
}> = ({ height, title }) => {
return (
<div
style={{
width: '100%',
height: height || '100%'
}}
className="flex-center flex-column "
>
{title && (
<h3
className="justify-center"
style={{ padding: '16px 0', marginBottom: 0 }}
>
{title}
</h3>
)}
<div
className="flex-center justify-center flex-column"
style={{ height: '100%' }}
>
<Empty />
</div>
</div>
);
};
export default EmptyData;