import { ComponentPropsWithRef, ElementType, JSX } from "react"; //#region src/types/polymorphic.d.ts type AsProp = { as?: C; }; type PropsToOmit = keyof (AsProp & P); type PolymorphicProps = P & AsProp & Omit, PropsToOmit>; type PolymorphicComponent = { (props: PolymorphicProps): JSX.Element | null; defaultComponent?: DefaultC; }; //#endregion export { PolymorphicComponent as t };