waveterm/frontend/app/element/quickelems.tsx

20 lines
441 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
2024-06-12 02:42:10 +02:00
import React from "react";
2024-05-14 21:29:41 +02:00
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 };