Extract generic code out of labeling task

This commit is contained in:
AbdBarho
2023-01-08 10:52:57 +01:00
parent 710898903d
commit a19e0fa085
6 changed files with 191 additions and 149 deletions
@@ -1,7 +1,7 @@
import { Progress } from "@chakra-ui/react";
import { useColorMode } from "@chakra-ui/react";
export const LoadingScreen = ({ text }) => {
export const LoadingScreen = ({ text = "Loading..." } = {}) => {
const { colorMode } = useColorMode();
const mainClasses = colorMode === "light" ? "bg-slate-300 text-gray-800" : "bg-slate-900 text-white";