24 lines
537 B
TypeScript
24 lines
537 B
TypeScript
import { Card, Empty } from 'antd';
|
|
|
|
interface PagePlaceholderProps {
|
|
title: string;
|
|
description: string;
|
|
}
|
|
|
|
/** 业务模块实现前的统一占位页 */
|
|
const PagePlaceholder = ({ title, description }: PagePlaceholderProps) => (
|
|
<Card>
|
|
<Empty
|
|
image={Empty.PRESENTED_IMAGE_SIMPLE}
|
|
description={
|
|
<>
|
|
<div>{title}</div>
|
|
<div>{description}</div>
|
|
</>
|
|
}
|
|
/>
|
|
</Card>
|
|
);
|
|
|
|
export default PagePlaceholder;
|