or}-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-${color}-900 dark:text-${color}-300`;
      statusEl.style.display = "inline-block";
      statusEl.appendChild(document.createTextNode(state === "Available" ? "Available" : "Working ..."));
      return statusEl;
    }

    function onWorkerEvent(event) {
      const keys = Object.getOwnPropertyNames(event);
      if (keys.includes("WorkerConnected")) {
        const table = document.getElementById("workers");
        table.appendChild(renderWo