import classNames from 'classnames' import React from 'react' type IconOwnProps = { type: string category?: 'rounded' | 'outlined' accessibilityLabel?: string } type IconProps = IconOwnProps & Omit, keyof IconOwnProps> function MaterialIcon({ type, category = 'rounded', className, accessibilityLabel, ...rest }: IconProps) { const iconClassName = classNames( 'material-symbols', `material-symbols-${category}`, className ) return ( <> {accessibilityLabel && ( {accessibilityLabel} )} ) } export default MaterialIcon