drawDB/src/components/EditorSidePanel/Empty.jsx

21 lines
543 B
React
Raw Normal View History

2024-03-16 08:23:10 +08:00
import {
IllustrationNoContent,
IllustrationNoContentDark,
} from "@douyinfe/semi-illustrations";
2024-03-17 04:24:16 +08:00
import { Empty as SemiUIEmpty } from "@douyinfe/semi-ui";
2024-03-16 08:23:10 +08:00
2024-03-17 04:24:16 +08:00
export default function Empty({ title, text }) {
2024-03-16 08:23:10 +08:00
return (
<div className="select-none mt-2">
2024-03-17 04:24:16 +08:00
<SemiUIEmpty
2024-03-16 08:23:10 +08:00
image={<IllustrationNoContent style={{ width: 154, height: 154 }} />}
darkModeImage={
<IllustrationNoContentDark style={{ width: 154, height: 154 }} />
}
title={title}
description={text}
/>
</div>
);
}