import {_x} from '@wordpress/i18n'; import EventTicketsListItem from './EventTicketsListItem'; import {EventTicketsListProps} from './types'; export default function EventTicketsList({ ticketTypes, currency, currencyRate, selectedTickets = [], handleSelect = null, }: EventTicketsListProps) { if (!ticketTypes?.length) { return null; } return (

{_x('Select tickets', 'Title above the list of ticket types in the Event Tickets template', 'give')}

{ticketTypes.map((ticketType) => { return ( null } currency={currency} currencyRate={currencyRate} /> ); })}
); }