import styles from "./App.module.scss";
import testImg from "@/assets/images/notGetStatus.png";
import {useNavigate} from "react-router-dom";

const App = () => {
    const navigate = useNavigate();
    const handleClick = () => {
        navigate("/testdemo?id=1234", {
            state: {
                id: 1234567
            }
        });
    };
    return (
        <div className="content">
            <div className={styles.testBox}>
                <span className={styles.testBoxText}>hello, 你好 {process.env.REACT_APP_ENV}</span>
                <button onClick={handleClick}>点击跳转</button>
                <img className={styles.testBoxImg} src={testImg} alt=""/>
            </div>
        </div>
    );
};


export default App;
