waveterm/frontend/app/element/quickelems.tsx

19 lines
414 B
TypeScript
Raw Normal View History

2024-05-14 21:29:41 +02:00
// Copyright 2024, Command Line Inc.
// SPDX-License-Identifier: Apache-2.0
import "./quickelems.less";
function CenteredLoadingDiv() {
return <CenteredDiv>loading...</CenteredDiv>;
}
2024-05-17 07:48:23 +02:00
function CenteredDiv({ children }: { children: React.ReactNode }) {
2024-05-14 21:29:41 +02:00
return (
2024-05-17 07:48:23 +02:00
<div className="centered-div">
<div>{children}</div>
2024-05-14 21:29:41 +02:00
</div>
);
}
export { CenteredDiv, CenteredLoadingDiv };