import { Typography, Card, Flex } from 'antd'; import { CheckCircleOutlined, CloseCircleOutlined } from '@ant-design/icons'; import PrimaryButton from './PrimaryButton'; const { Title, Text } = Typography; type Feature = { available: boolean; text: string; }; type PlanCardProps = { title: string; price: string; description: string; features: Feature[]; }; const PlanCard: React.FC = ({ title, price, description, features }) => { return ( {title}} > {price}
Per agent Per month
Select
{description}
{features.map((feature, idx) => ( {feature.available ? ( ) : ( )} {feature.text} ))}
); }; export default PlanCard;