import List from 'assets/list-ul.svg'; import EventDataForm from 'components/forms/EventDataForm'; import PropTypes from 'prop-types'; import { useState } from 'react'; import { Button, Icon, Modal } from 'react-basics'; import { FormattedMessage } from 'react-intl'; import styles from './EventDataButton.module.css'; function EventDataButton({ websiteId }) { const [showEventData, setShowEventData] = useState(false); function handleClick() { if (!showEventData) { setShowEventData(true); } } function handleClose() { setShowEventData(false); } return ( <> {showEventData && ( } onClose={handleClose} > {close => } )} ); } EventDataButton.propTypes = { websiteId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), }; export default EventDataButton;