import React from "react" import { useState } from "react" import { useOpenDirQuery } from "../generated/graphql" import Breadcrum from "./Breadcrum" import FileBrowserElement from "./FileBrowserElement" const FileBrowser: React.FC = () => { const [path,setPath] = useState("/") const { data } = useOpenDirQuery({ variables:{ path } }) return (
{ setPath(newPath) }}/>
{ data?.directorys.map(v => ({ setPath(data.id) }} />))} { data?.files.map(v => ())}
Name Size
) } export default FileBrowser