import EventDataForm from 'components/metrics/EventDataForm';
import { useState } from 'react';
import { Button, Icon, Modal, Icons } 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 (
<>
}
tooltipId="button-event"
size="sm"
onClick={handleClick}
className={styles.button}
>
Event Data
{showEventData && (
}
onClose={handleClose}
>
{close => }
)}
>
);
}
export default EventDataButton;