import { View } from '@tarojs/components' import type { FC, ReactNode } from 'react' import classname from 'classnames' import type { IconNames } from '../iconfont/iconfont' import IconFont from '../iconfont/iconfont' import styles from './index.module.scss' interface PropsType { iconName: IconNames title: string children?: ReactNode onClick?: Function customClass?: string iconSize?: number } const IconCard: FC = (props) => { const { iconName, title, onClick, customClass = '', iconSize = 72 } = props const handleClick = (event) => { console.log(event) onClick && onClick(event) } return ( {title} ) } export default IconCard