import { ComponentType } from 'react'; import { AsElementType } from '@instructure/shared-types'; /** * A props object that is searched for some fields to determine the * element's type. */ interface PropsObject { as?: AsElementType; to?: string; href?: string | null; onClick?: ((...args: any) => any) | null; } /** * --- * category: utilities/react * --- * Get the React element type for a component. It uses the following logic: * 1. type defined by the `as` prop * 2. type returned by the `getDefault()` parameter * 3. `` if it has a `href` or `to` prop * 4. `