sozsoft-platform/ui/src/components/shared/SvgIcon.tsx

22 lines
496 B
TypeScript
Raw Normal View History

2026-02-24 20:44:16 +00:00
import { forwardRef } from 'react'
import classNames from 'classnames'
import type { CommonProps } from '@/proxy/common'
const SvgIcon = forwardRef<HTMLSpanElement, CommonProps>((props, ref) => {
const { children, className, ...rest } = props
return (
<span
ref={ref}
className={classNames('inline-flex', className)}
{...rest}
>
{children}
</span>
)
})
SvgIcon.displayName = 'SvgIcon'
export default SvgIcon