import { ReactNode, ReactElement } from 'react'; import { findElementsOfType } from '../utilities/findElementsOfType'; import { DropdownProps, DropdownOption, DropdownOptGroup, DropdownValue } from './Dropdown'; export function validateProps(props: DropdownProps) { if (process.env.NODE_ENV !== 'production') { if (props.children && props.options?.length > 0) { console.warn( `Cannot use 'options' and 'children' React properties at the same time in the