I am trying to render a component that must have one of its properties be optional, like it either is there with a value, or its not there at all:

```
export default function Select({ListBoxProperty}) {

  return (ListBoxProperty ? <Component ListBox={ListBoxProperty} /> : <Component />)
}

```

If `ListBoxProperty` is undefined, the `ListBox` property should not be given to `Component` at all.

How can I do the above without the ternary operator, and do it within the properties of `Component`?