import styles from './styles.module.scss';

interface PlanFeature {
    text: string;
}

interface PlanIncludesProps {
    features: PlanFeature[];
    title: string;
}

function PlanIncludes({ features, title }: PlanIncludesProps) {
    return (
        <div className={styles.container}>
            <h2 className={styles.title}>{title}</h2>
            <ul className={styles.featuresList}>
                {features.map((feature, index) => (
                    <li key={index} className={styles.featureItem}>
                        {feature.text}
                    </li>
                ))}
            </ul>
        </div>
    );
}

export default PlanIncludes;