import {useState} from 'react'; import cx from 'classnames'; import {__} from '@wordpress/i18n'; import {GiveIcon} from '@givewp/components'; import styles from './EventDetailsPage.module.scss'; import {GiveEventTicketsDetails} from './types'; import EventSection from './EventSection'; import TicketTypesSection from './TicketTypesSection'; import DonationFormsSection from './DonationFormsSection'; import AttendeesSection from './AttendeesSection'; declare global { interface Window { GiveEventTicketsDetails: GiveEventTicketsDetails; } } const tabs = { overview: __('Overview', 'give'), attendees: __('Attendees', 'give'), }; export default function EventDetailsPage() { const [activeTab, setActiveTab] = useState<'overview' | 'attendees'>('overview'); const [updateErrors, setUpdateErrors] = useState<{errors: Array; successes: Array}>({ errors: [], successes: [], }); return ( <>

{__('Event details', 'give')}

{__('Go to events list', 'give')}
{activeTab === 'attendees' ? ( ) : ( <> )}
); }