refactor: extract badgeStateColor function for reuse across log components

This commit is contained in:
faytranevozter
2024-12-27 08:48:36 +07:00
parent 27252cf58d
commit 985b8bc2e0
3 changed files with 4 additions and 30 deletions
@@ -31,7 +31,7 @@ export const DockerLogs = dynamic(
},
);
const badgeStateColor = (state: string) => {
export const badgeStateColor = (state: string) => {
switch (state) {
case "running":
return "green";