import React, { useCallback } from 'react' import { Typography } from 'antd'; import { BankFilled, WalletFilled } from '@ant-design/icons'; const { Text } = Typography type IconCardProps = { active: boolean; iconName: string; text: string; handleClick: () => void } const IconCard: React.FC = ({ active, iconName, text, handleClick }: IconCardProps) => { const renderIcon = useCallback((nameId: string) => { if (nameId === "card") return else if (nameId === "bank") return else return <> }, []) return (
{renderIcon(iconName)} {text}
) } export default IconCard