import React from 'react'
import GrentReducer from './grent'
import Upload from '../components/Upload'
import styles from './index.module.css'

export default function ModelList({ className }: any) {
  const { referData, Element } = GrentReducer({
    delUrl: '/fdModel/delete/',
    getUrl: '/fdModel/list/',
    zipUrl: '/fdModel/unzip/',
    sectionUrl: '/fdModel/command/osgb/',
    transferUrl: '/fdModel/move/'
  })

  return (
    <div className={className}>
      {Element}
      <div className={styles.uplayer + ' ' + styles.inuplayer} >
        <Upload className={styles.uplayer} api='/fdModel/upload' check='/fdModel/check/' upHandle={referData} />
      </div>
    </div>
  )
}