import classNames from 'classnames' type IconOwnProps = { type: string spin?: boolean fw?: boolean modifier?: string accessibilityLabel?: string } export type IconProps = IconOwnProps & Omit, keyof IconOwnProps> function Icon({ type, spin, fw, modifier, className = '', accessibilityLabel, ...rest }: IconProps) { const iconClassName = classNames( 'fa', `fa-${type}`, { 'fa-spin': spin, 'fa-fw': fw, [`fa-${modifier}`]: modifier, }, className ) return ( <>