## Combobox to-dos

[ ] Passing in a defaultValue
[x] Value stored as an object, not a string
[ ] Value transformation using getOptionLabel and getOptionValue props
[ ] Custom option label (people in comply)


```jsx
const transformToOption = (item: any) => {
  if (!item) {
    return {
      label: "",
      value: null,
    };
  }

  const option = {
    label: getOptionLabel ? getOptionLabel(item) : item,
    value: getOptionValue ? getOptionValue(item) : item,
  };

  if (getOptionValue) {
    return { ...option, ...item };
  }

  return option;
};

const selectedOption = transformToOption(value);
// const choices = options.map(transformToOption);
const choices = availableOptions.map(transformToOption);
```
