chore: refactored code, added some functions

This commit is contained in:
2024-08-24 17:41:44 +00:00
parent 786204ecc8
commit 4bbb583f77
4 changed files with 166 additions and 64 deletions

View File

@@ -0,0 +1,17 @@
import React from "react";
interface Props {
serverStatus: string;
}
const serverStatus = ({ serverStatus }: Props) => {
let bgColor = "bg-success";
return (
<>
<div className={bgColor}>{serverStatus}</div>
</>
);
};
export default serverStatus;