This repository has been archived on 2026-03-26. You can view files and clone it, but cannot push or open issues or pull requests.

20 lines
712 B
JavaScript

import Directory from "./Directory.jsx";
/**
* Display the directories in the current path.
* @param diretories {string[]} Children of the path.
* @param showHidden {boolean} Display hidden items.
* @param appendPath {function(string)} Function to add a child to the path.
* @param toggleSelected {function(string)} Function to toggle selection status.
* @constructor
*/
export default function DirectoryList({dirs, showHidden, appendPath, toggleSelected}) {
return (
<>
{dirs.map((dir, idx) => <Directory entry={dir} showHidden={showHidden} key={idx} appendPath={appendPath}
toggleSelected={toggleSelected}/>)}
</>
)
}