import React from 'react'
import {amisRender, commonInfo, yarnQueueCrud} from '../../util/amis.tsx'

const YarnCluster: React.FC = () => {
  return (
    <div className="hudi-yarn-cluster">
      {amisRender(
        {
          type: 'wrapper',
          body: [
            ...Object.keys(commonInfo.clusters.compaction).map(name => yarnQueueCrud(name)),
          ],
        },
      )}
    </div>
  )
}

export default YarnCluster