// 导入所有Ant Design图标
import * as AllIcons from '@ant-design/icons-vue';

// 过滤掉非图标组件
const exclude = [
  'createFromIconfontCN',
  'getTwoToneColor',
  'setTwoToneColor',
  'default'
];

// 提取并导出所有图标组件
const icons = Object.entries(AllIcons)
  .filter(([name]) => !exclude.includes(name))
  .reduce((acc, [name, component]) => {
    acc[name] = component;
    return acc;
  }, {} as Record<string, any>);

export default icons;
export type AntdIcon = keyof typeof icons;
