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";
|
|
|
|
|
2024-05-24 23:08:24 +02:00
|
|
|
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>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2024-05-24 23:08:24 +02:00
|
|
|
export { CenteredDiv, CenteredLoadingDiv };
|