import type { SVGAttributes } from 'react' ; import { GlobalConstants } from '@cloudbeaver/core-utils' ; export const Icon = function Icon ( props ) { const { name = '' , className , ... rest } = props ; const cn = `icon ${ className || '' }` ; const url = GlobalConstants . absoluteUrl ( name . startsWith ( '/' ) ? name : `/icons/icons.svg#${ name }` ) ; return ( < svg { ... rest } className = { cn } aria - hidden = "true" focusable = "false" > < use href = { url } /> < /svg>); } ;