import { useEffect, useState } from "react"; import '../css/Modal.css'; function Modal() { const [count, setCount] = useState(0); const nextModal1 = () => { setCount(1); } const nextModal2 = () => { setCount(2); } const nextModal3 = () => { setCount(3); } const nextModal4 = () => { setCount(4); } const startModal = () => { document.getElementById("main-modal").style.display = 'block'; setCount(0); } const exitModal = () => { document.getElementById("main-modal").style.display = 'none'; } return (
{(count == 0) &&

Welcome to WatchDogs!

Click start for an introduction to the WatchDogs interface.

} {(count == 1) &&

This is the suspicion ranking pane, which displays high-profile traders and the suspicion score our algorithm assigned to them. The higher an individual is ranked, the more likely they are involved in insider trading.

} {(count == 2) &&

The Timeframe pane allows you to chose the timespan you'd like to see trade data from. Individuals' suspicion score will be calculated based on the trades that occured during the timeframe you select.

} {count == 3 &&

The Trader Graph shows how traders are related. Click on a name in the graph to see more information about that individual.

} {count == 4 &&

}
); } export default Modal;