import type React from "react"; export type AsProp = { as?: C | null; }; export type PropsToOmit = keyof (AsProp & P); export type PolymorphicComponentProp = React.PropsWithChildren> & Omit, PropsToOmit>; export type PolymorphicComponentPropWithRef = PolymorphicComponentProp & { ref?: PolymorphicRef; }; export type PolymorphicRef = React.ComponentPropsWithRef["ref"];