## Description
Returns state based on variable key (without rendering).

## Parameters
The `state` param takes in an array where the value of the first element determines the key to retrieve a value from the second element which must be an object. For example, the following would return `{ foo: 'bar' }` to the framework state object if $condition is set to "a", or `{ foo: 'baz' }`, if $condition is set to "b":

```json
{
  "component": "packs-components/Switch",
  "state": [
    "$condition",
    {
      "a": { "foo": "bar" },
      "b": { "foo": "baz" }
    }
  ]
}
```