import React from 'react'; import { Dialog } from '@headlessui/react'; import { XIcon } from '@heroicons/react/outline'; import QuestionMarkCircleIcon from '@heroicons/react/solid/QuestionMarkCircleIcon'; interface FormHeaderProps { currentCustomEvent?: any; eventType: string; onClose: () => void; handleHelpClick?: any; } const EventsFormHeader: React.FC = ({ currentCustomEvent, eventType, onClose, handleHelpClick, }) => { return (
{currentCustomEvent ? 'Edit' : 'New'} {eventType}
); }; export default EventsFormHeader;