Files
CPLv4.0/components/main/kabelueberwachung/kue705FO/modals/TdrEinstellung.tsx
2025-04-23 11:05:21 +02:00

63 lines
1.6 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// components/main/kabelueberwachung/kue705FO/modals/TdrEinstellung.tsx
"use client";
import React, { useState } from "react";
interface Props {
slot: number;
}
export default function TdrEinstellung({ slot }: Props) {
const [tdrActive, setTdrActive] = useState(false);
const [params, setParams] = useState({
verstarkung: "",
pulsweite: "",
trigger: "",
});
return (
<div className="space-y-4">
{/*
<h2 className="text-lg font-semibold">
TDR-Einstellung Slot {slot + 1}
</h2>
*/}
<div>
<label className="flex items-center gap-2">
<input
type="checkbox"
checked={tdrActive}
onChange={(e) => setTdrActive(e.target.checked)}
/>
TDR-Funktion aktivieren
</label>
</div>
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
<input
placeholder="Verstärkung"
value={params.verstarkung}
onChange={(e) =>
setParams({ ...params, verstarkung: e.target.value })
}
className="border px-2 py-1 rounded"
/>
<input
placeholder="Pulsweite"
value={params.pulsweite}
onChange={(e) => setParams({ ...params, pulsweite: e.target.value })}
className="border px-2 py-1 rounded"
/>
<input
placeholder="Trigger"
value={params.trigger}
onChange={(e) => setParams({ ...params, trigger: e.target.value })}
className="border px-2 py-1 rounded"
/>
</div>
</div>
);
}