import React, { useContext } from 'react'; import { Tag } from '../../types'; import SearchResultsConfigurationContext from '../../search-results-configuration-context'; interface FlightBannerProps { tag: Tag; luggageIncluded: boolean; } const FlightBannerComponent: React.FC = ({ tag, luggageIncluded }) => { const context = useContext(SearchResultsConfigurationContext); return (
{tag.icon}

{tag.label}

{luggageIncluded && (

Luggage included

)}
); }; export default FlightBannerComponent;