import { useNavigate } from "react-router-dom"; import "./OpenPageButton.css"; /** * @param {String} pageToGoTo - The page that the button goes to * @param {String} textOnButton - The Text tht will be on the button * @returns {JSX.Element} JSX - HTML tags and JS functionality * @description Button Template that moves you to the * @author Brock * @todo refactor so that name is OpenPageButton, add css to the button */ const OpenPageButton = ({ pageToGoTo, textOnButton }) => { const navigate = useNavigate(); const navigateTo = (param) => { navigate(param); }; return ( ); }; export default OpenPageButton;