Spaces:
Paused

xiaodu1233
ok
6d2d8b6
Raw History Blame Contribute Delete
467 Bytes
export function Loading({ text = '加载中…' }) {
return <div className="status">{text}</div>;
}
export function ErrorBox({ message, onRetry }) {
return (
<div className="status error">
<p>{message}</p>
{onRetry && (
<button className="btn" onClick={onRetry}>
重试
</button>
)}
</div>
);
}
export function Empty({ text = '没有找到相关内容' }) {
return <div className="status">{text}</div>;
}