"use client"; import React from "react"; import { Icon } from "@iconify/react"; import { useSelector } from "react-redux"; import { RootState } from "../../../redux/store"; import CogIcon from "../../../components/icons/CogIcon"; 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 (
| Eingang | Zustand | Bezeichnung | Aktion |
|---|---|---|---|
|
|
{input.status ? ( ✕ ) : ( ● )} | {input.label} |
|