import React, { useMemo } from 'react'; import { FormField, Dropdown as DropdownWSR, DropdownLayoutOption, } from '@wix/design-system'; import { BaseInputProps } from '../BaseInput'; import { Field } from '../Field'; import { dataHooks } from '../dataHooks'; export interface DropdownProps extends BaseInputProps {} export const Dropdown = ({ dataHook, schema, initialValue, onChange, }: DropdownProps) => { const options: DropdownLayoutOption[] = useMemo( () => schema.options?.map((o) => ({ id: o, value: o })) || [], [schema], ); return ( onChange(id as string)} /> ); };