refactor: remove file route

This commit is contained in:
2025-09-20 13:20:15 +00:00
parent c10edc0df2
commit 75ee997d04

View File

@@ -1,15 +0,0 @@
import { joinPath, PATH_SEPARATOR } from "@fileone/path"
import { createFileRoute } from "@tanstack/react-router"
import { FilesPage } from "@/files/files-page"
export const Route = createFileRoute("/_authenticated/_sidebar-layout/files/$")(
{
component: RouteComponent,
},
)
function RouteComponent() {
const { _splat } = Route.useParams()
const path = _splat ? joinPath("", _splat) : PATH_SEPARATOR
return <FilesPage path={path} />
}