Files
CPLv4.0/components/main/kabelueberwachung/kue705FO/handlers/handleRefreshClick.ts
Ismail Ali b9651a53a9 esLint
2025-06-26 22:56:20 +02:00

19 lines
537 B
TypeScript

// components/main/kabelueberwachung/kue705FO/handlers/handleRefreshClick.ts
import { Dispatch, SetStateAction } from "react";
import { goLoop } from "@/utils/goLoop";
import { goTDR } from "@/utils/goTDR";
const handleRefreshClick = (
activeButton: "Schleife" | "TDR",
slotIndex: number,
setLoading: Dispatch<SetStateAction<boolean>>
) => {
if (activeButton === "Schleife") {
goLoop(slotIndex, setLoading);
} else if (activeButton === "TDR") {
goTDR(slotIndex, setLoading);
}
};
export default handleRefreshClick;