import React from 'react' import cn from '@/utils/classnames' type OptionCardProps = { label: string Icon: React.FC> | string selected: boolean onClick?: () => void } const OptionCard = ({ label, Icon, selected, onClick, }: OptionCardProps) => { return (
{ typeof Icon === 'string' ?
{Icon}
: }
{label}
) } export default React.memo(OptionCard)