import type { ComponentClass, ElementType, ForwardRefExoticComponent, FunctionComponent, PropsWithoutRef, Ref, RefAttributes, } from 'react' import { forwardRef } from 'react' import { jsxs } from './jsxs' export function createComponent< R extends HTMLElement, T extends FunctionComponent
| ComponentClass
| ElementType,
P extends {}
>(
type: T,
useHook: (props: P) => any
): ForwardRefExoticComponent