import React from "react"; import { PolymorphicComponentPropsWithRef } from "./types"; type SxProps = { sx?: any; }; type ComponentProps = PolymorphicComponentPropsWithRef; type ComponentComponent = (props: ComponentProps) => React.ReactElement | null; declare function createComponent(component: C): ComponentComponent; export default createComponent;