import React, { useEffect, useState } from 'react' import { useRecoilState, useRecoilValue } from 'recoil' import { interactiveSegClicksState, isInteractiveSegRunningState, isInteractiveSegState, } from '../../store/Atoms' import Button from '../shared/Button' interface Props { onCancelClick: () => void onAcceptClick: () => void } const InteractiveSegConfirmActions = (props: Props) => { const { onCancelClick, onAcceptClick } = props const [isInteractiveSeg, setIsInteractiveSeg] = useRecoilState( isInteractiveSegState ) const [isInteractiveSegRunning, setIsInteractiveSegRunning] = useRecoilState( isInteractiveSegRunningState ) const [clicks, setClicks] = useRecoilState(interactiveSegClicksState) const clearState = () => { setIsInteractiveSeg(false) setIsInteractiveSegRunning(false) setClicks([]) } return (
) } export default InteractiveSegConfirmActions