import {__} from '@wordpress/i18n'; import {SelectControl} from '@wordpress/components'; /** * @since 3.6.0 */ export default function BlockPlaceholderSelectEvent({attributes, setAttributes}) { const {events} = window.eventTicketsBlockSettings; const eventOptions = events.map((event) => { return {label: event.title, value: `${event.id}`}; }) ?? []; return (

{__('No event selected yet', 'give')}

setAttributes({eventId: Number(value)})} />
); }