import React from "react";
import classes from "./classes.module.scss";
import FolderContainer from "../FolderContainer";
import { IFolder } from "../SearchBar";

type IProps = {
	folders: IFolder[];
};

type IState = {};

export default class FolderList extends React.Component<IProps, IState> {
	public override render(): JSX.Element {
		return <div className={classes["root"]}>
			{this.props.folders.map((folder, key) => {
				
				return <FolderContainer folder={folder} key={key}/>;
			})};
		</div>;
	}
}
