
// import Icon, { FolderOpenOutlined } from '@ant-design/icons-vue'

import Icon, * as Icons from '@ant-design/icons-vue'

export default ({ name }: {name: string}) => {
  const _iconComponent = name ? Icons[name as keyof typeof Icons] : <></>

  return _iconComponent ? <Icon component={_iconComponent} /> : null
}
