File size: 839 Bytes
38c5e89 945c6bb 5786921 d378496 31d949e 38c5e89 31d949e 38c5e89 945c6bb 38c5e89 945c6bb 5786921 31d949e 5786921 945c6bb 38c5e89 |
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 33 |
import Head from "next/head";
import Container from "@mui/material/Container";
import { Stack } from "@mui/material";
import { DividerBox } from "@/components/base/boxes";
import { useEffect, useState } from "react";
export default function Home() {
const [data, setData] = useState(0)
useEffect(() => {
(async () => {
const res= (await ((await fetch('/api/get_file_list')).json()))
setData(res.file_list[0]);
})()
}, [])
return (
<>
<Head>
<title>nextjs-docker-starter</title>
<link rel="icon" href="/favicon.ico" />
<meta name="description" content="Next.js in Docker on 🤗 Spaces" />
</Head>
<Container component="main" sx={{ minHeight: "90vh" }}>
<Stack spacing={4} useFlexGap>
{data}
</Stack>
</Container>
</>
);
}
|