Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 711 Bytes
ebdfd67 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
import React from "react";
import { Box } from "@mui/material";
import { useNavigate } from "react-router-dom";
import Intro from "../components/Intro";
import BenchmarkCreateForm from "../components/BenchmarkCreateForm";
function HomePage() {
const navigate = useNavigate();
const handleStartGeneration = (sid) => {
navigate(`/benchmark-generation?session=${sid}`);
};
return (
<>
<Intro />
<Box
sx={{
border: "1px solid rgba(0, 0, 0, 0.12)",
borderRadius: 2,
p: 4,
bgcolor: "white",
}}
>
<BenchmarkCreateForm onStartGeneration={handleStartGeneration} />
</Box>
</>
);
}
export default HomePage;
|