import type { Ref, SVGAttributes } from 'react' import React, { forwardRef } from 'react' import type { RenderFunction } from './renderFunction' import type { IconOptions } from './Icon' export type IconBaseProps = IconBaseOptions & SVGAttributes export const IconBase = forwardRef( (props: IconBaseProps, ref: Ref) => { const { width = '1.25rem', height = '1.25rem', weight = 'outline', mirrored = false, title, children, renderPath, ...htmlProps } = props return ( {title ? {title} : null} {children} {renderPath(weight, 'currentColor')} ) } ) export interface IconBaseOptions extends IconOptions { renderPath: RenderFunction height?: string | number | undefined width?: string | number | undefined }