import React from 'react';

import {withTheme, injectSheet} from '../../../lib/theme';
import FileFolderBase from './FileFolderBase';

const styling = theme => ({
    wrapper: {},
    wrapperSelect: {
        overflow: 'hidden'
    }
});

class File extends React.Component {

    render() {
        const {
            t, classes,
            rmSave, addSave,
            name, data, schema,
        } = this.props;

        return (
            <div className={classes.wrapper}>
                <FileFolderBase t={t}
                                rmSave={rmSave}
                                addSave={addSave}
                                name={name}
                                data={data}
                                schema={schema}
                                selectFile={true}
                                selectDir={false}
                                multiple={false}
                />
            </div>
        );
    }
    ;
}

export default withTheme(injectSheet(styling)(File));