import type { SVGProps } from 'react' import React, { forwardRef } from 'react' type IconWeight = 'thin' | 'light' | 'regular' | 'bold' const mapWeightToValue: Record = { bold: 24, regular: 16, light: 12, thin: 8, } export interface IconProps extends SVGProps { /** * ID to find this component in testing tools (e.g.: cypress, testing library, and jest). */ testId?: string /** * Symbol id from element to render. Take a look at `/static/icons.svg`. * * Example: */ name: string /** * SVG weight. * * @default 'regular' */ weight?: IconWeight /** * SVG width. * * @default '24' */ width?: number /** * SVG height. * * @default '24' */ height?: number } const Icon = forwardRef(function Icon( { testId = 'fs-icon', name, weight = 'regular', ...otherProps }: IconProps, ref ) { const { width, height } = otherProps return ( ) }) export default Icon