chore: refactored code, added some functions
This commit is contained in:
17
app/components/WebConsole/serverStatus.tsx
Normal file
17
app/components/WebConsole/serverStatus.tsx
Normal 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;
|
||||
Reference in New Issue
Block a user