Icon change with state

I want to create an icon as a button. after pressing ON the Icon schould change to iconname-on, but it doesn´t. Where is my mistake?

uid: widget_link_demo
tags: []
props:
  parameters:
    - context: item
      description: Select the item to use with these buttons.
      label: Item
      name: netflix
      required: true
      type: TEXT
      groupName: general
  parameterGroups:
    - name: general
      label: Display options
timestamp: Apr 8, 2023, 12:26:42 PM
component: oh-link
config:
  action: command
  actionCommand: "=(items[props.netflix].state === 'OFF') ? 'ON' : 'OFF' "
  actionItem: =props.netflix
slots:
  default:
    - component: oh-icon
      config:
        icon: "=(items[props.netflix].states == 'ON') ? 'oh:harmony_netflix-on'  : 'oh:harmony_netflix-off'"
        style:
          width: 100px

Hello,
I think here you have a typo:

icon: "=(items[props.netflix].states (...)

You should use state property instead of states.

thank you very much!