import classNames from 'classnames' import type { CommonProps } from '@/proxy/common' import type { ReactNode, ElementType } from 'react' export interface IconTextProps extends CommonProps { icon?: ReactNode | string asElement?: ElementType } const IconText = ({ className, asElement: Component = 'span', icon, children, }: IconTextProps) => { return ( {icon} {children} ) } export default IconText