24 lines
384 B
TypeScript
24 lines
384 B
TypeScript
import React from "react"
|
|
import { Directory } from "../generated/graphql"
|
|
import { MdFolderOpen } from "react-icons/md"
|
|
|
|
interface Props {
|
|
dir: Directory
|
|
}
|
|
|
|
const DirectoryElement: React.FC<Props> = (props) => {
|
|
return (
|
|
<>
|
|
<td>
|
|
<MdFolderOpen className="inline"/> {props.dir.name}
|
|
</td>
|
|
<td>
|
|
</td>
|
|
<td>
|
|
</td>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default DirectoryElement
|