In the WindowedSelect component, we need to check whether the consumer is passing in a list of grouped options, and if so, count the number of grouped options to determine whether windowing should kick in via the windowThreshold prop.
needs to check if the first item has an "options" property and if so count the number of grouped options and determine if that number is greater than the windowThreshold.
In the WindowedSelect component, we need to check whether the consumer is passing in a list of grouped options, and if so, count the number of grouped options to determine whether windowing should kick in via the windowThreshold prop.
const isWindowed = options.length >= windowThreshold;
needs to check if the first item has an "options" property and if so count the number of grouped options and determine if that number is greater than the windowThreshold.