about summary refs log tree commit diff
path: root/src/pages/File.tsx
blob: f1377b29fea8563feb89aac0907a0a758610b248 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { useParams } from "react-router-dom"
import SideBar from "../components/Sidebar/Sidebar"

export default function File() {
  let { filepath } = useParams();

  console.log("FILEPATH: ", filepath)

  return (
    <>
      <div className="flex h-screen">
        <SideBar />
        <main className="flex-1 overflow-y-auto my-4">
          <div className="flex flex-col items-center">
            {filepath}
          </div>
        </main>
      </div>
    </>
  )
}