import React from 'react'; import classNames from 'classnames'; import { FontAwesomeIcon, FontAwesomeIconProps, } from '@fortawesome/react-fontawesome'; export type ThemeProps = | 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'light' | 'dark' | 'white' | 'black'; export interface IconProps extends FontAwesomeIconProps { theme?: ThemeProps; } const Icon: React.FC = (props) => { // icon-primary const { className, theme, ...restProps } = props; const classes = classNames('paypay-icon', className, { [`icon-${theme}`]: theme, }); return ; }; export default Icon;