import React from 'react'; import PropTypes from 'prop-types'; import { gettext } from '../../utils/constants'; import TreeDirList from './tree-dir-list'; const propTypes = { node: PropTypes.object.isRequired, onMainNodeClick: PropTypes.func.isRequired, }; class TreeDirView extends React.Component { render() { let node = this.props.node; let children = node.hasChildren() ? node.children : null; return (
{gettext('Name')} | {gettext('Size')} | {gettext('Last Update')} |
---|