import type { HTMLAttributes, ReactNode } from 'react' import React, { forwardRef } from 'react' export interface IconProps extends HTMLAttributes { /** * A React component that will be rendered as an icon. */ component: ReactNode /** * ID to find this component in testing tools (e.g.: cypress, testing library, and jest). */ testId?: string } const Icon = forwardRef(function Button( { component, testId = 'store-icon', ...props }: IconProps, ref ) { return ( {component} ) }) export default Icon