@codecademy/gamut
72.2.272.2.3-alpha.83b0a8.0
dist/Form/SelectDropdown/hooks/useSelectOptions.d.ts+
dist/Form/SelectDropdown/hooks/useSelectOptions.d.tsNew file+14
Index: package/dist/Form/SelectDropdown/hooks/useSelectOptions.d.ts
===================================================================
--- package/dist/Form/SelectDropdown/hooks/useSelectOptions.d.ts
+++ package/dist/Form/SelectDropdown/hooks/useSelectOptions.d.ts
@@ -0,0 +1,14 @@
+import { SelectOptionBase } from '../../utils';
+import { SelectDropdownGroup, SelectDropdownOptions, SelectDropdownSizes } from '../types';
+interface UseSelectOptionsArgs {
+ options?: SelectDropdownOptions | SelectDropdownGroup[];
+ id?: string;
+ size?: SelectDropdownSizes['size'];
+ value?: string | string[];
+}
+interface UseSelectOptionsReturn {
+ selectOptions: SelectOptionBase[] | SelectDropdownGroup[];
+ parsedValue: SelectOptionBase | undefined;
+}
+export declare const useSelectOptions: ({ options, id, size, value, }: UseSelectOptionsArgs) => UseSelectOptionsReturn;
+export {};