"use client"; import React from "react"; import { Icon } from "@iconify/react"; import { useSelector } from "react-redux"; import { RootState } from "../../../redux/store"; type Props = { openInputModal: (input: any) => void; inputRange: { start: number; end: number }; }; export default function DigitalInputs({ openInputModal, inputRange }: Props) { const digitalInputs = useSelector( (state: RootState) => state.digitalInputsSlice.inputs ); const inputs = digitalInputs.slice(inputRange.start, inputRange.end); return (

Digitale Eingänge {inputRange.start + 1} – {inputRange.end}

{inputs.map((input) => ( ))}
Eingang Zustand Bezeichnung Aktion
{input.id} {input.status ? ( ) : ( )} {input.label} openInputModal(input)} />
); }