type Amenitie = {
    name: string;
    icon: string; 
};
interface AmenitieProps {
    amenities: Amenitie[]; // An array of feature objects
}
const Amenities: React.FC<AmenitieProps> = ({ amenities }) => {

    return (
        <div className="list list-check">
            <h3 className="heading-primary-text dark-bg-light">Amenities</h3>
            <div className="course-details amn-1">
                {amenities.map((amenity, index) => (
                    <p className="course-detail amenities-list" key={index}>
                        <span className="ime" data-original-title="" title=""><i className={`fa amenity-none ${amenity.icon}`} data-original-title="" title=""></i></span>
                        <span className="rit-side feature-label" data-original-title="" title="">{amenity.name}
                        </span>
                    </p>

                ))}


            </div>
        </div>
    );
};

export default Amenities;
