import type { ComponentType } from "react"; import { twMerge } from "../core/twMerge"; export function styled

( Component: ComponentType

, defaultClassName: string, ): ComponentType

{ function StyledComponent({ className, ...props }: P) { return ( ); } StyledComponent.displayName = `Styled(${Component.displayName ?? Component.name ?? "Component"})`; StyledComponent.__isStyledComponent = true; return StyledComponent; }