<template>
    <div>
        <folders-list-item 
            v-for="(folder, index) in selectedFolder.children"
            :key="'folder-' + index"
            :folder="folder"
            :uploader="uploader"
        /> 
    </div>
</template>

<script>
    export default {
        
        props: {
            uploader: {required: true},
        },

        computed: {
            app() {
                return this.uploader.app;
            },

            selectedFolder() {
                return this.uploader.activeFolderManager.selectedFolder;
            }
        },

        name: 'FoldersList',

    }
</script>