
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck

import {createFromIconfontCN} from '@ant-design/icons';
import {FC} from 'react';
// ?url 为了通过vistest测试 让vitest认为引入了路径
import menuIcons from '@assets/icons/menu.ldicons?url';
import buttonIcons from '@assets/icons/ldButton.ldicons?url';

// 图标js放在public下的icons中
// 放入后全局替换fill="#\d*" 将填充颜色清空
const Icons = createFromIconfontCN({
  scriptUrl: [
    buttonIcons,
    menuIcons,
  ],
});

type Props = {
  type: string;
};

const LDIcons: FC<Props> = function({type}) {
  return <Icons type={type} />;
};

export default LDIcons;
