onedrive/pages/[...path].tsx

31 lines
853 B
TypeScript
Raw Normal View History

import Head from 'next/head'
import { useRouter } from 'next/router'
import siteConfig from '../config/site.json'
import Navbar from '../components/Navbar'
import FileListing from '../components/FileListing'
import Footer from '../components/Footer'
2021-06-23 20:27:51 +00:00
import Breadcrumb from '../components/Breadcrumb'
export default function Folders() {
2021-06-23 20:27:51 +00:00
const { query } = useRouter()
return (
2021-09-04 14:15:09 +00:00
<div className="dark:bg-gray-900 flex flex-col items-center justify-center min-h-screen bg-white">
<Head>
<title>{siteConfig.title}</title>
</Head>
2021-09-04 14:15:09 +00:00
<main className="bg-gray-50 dark:bg-gray-800 flex flex-col flex-1 w-full">
<Navbar />
2021-12-15 09:01:31 +00:00
<div className="w-full max-w-5xl p-4 mx-auto">
2021-06-23 20:27:51 +00:00
<Breadcrumb query={query} />
<FileListing query={query} />
</div>
</main>
<Footer />
</div>
)
}