mirror of
https://github.com/didi/KnowStreaming.git
synced 2025-12-24 11:52:08 +08:00
16 lines
360 B
TypeScript
16 lines
360 B
TypeScript
import React from 'react';
|
|
|
|
const RenderEmpty = (props: { height?: string | number; message: string }) => {
|
|
const { height = 200, message } = props;
|
|
return (
|
|
<>
|
|
<div className="empty-panel" style={{ height }}>
|
|
<div className="img" />
|
|
<div className="text">{message}</div>
|
|
</div>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default RenderEmpty;
|